Privacy policyContactsAbout siteOpinionsGitHubDonate
© EVILEG 2015-2018
Recommend hosting
TIMEWEB
Jan. 4, 2019, 7:55 a.m.

Linux

snap

Всех приветствую на продолжении темы работы со snap пакетами. Очень часто бывает так, что разработчику требуется узнать все зависимости приложения. И это не просто узнать, имеет ли одна библиотека в зависимости другую.

Dec. 17, 2018, 6:33 a.m.

Linux

snap

Greetings to all on the continuation of the topic of self-contained snap packages. In today's part, we will discuss how to configure the application so that it can be launched not only in the console, but also in the graphical environment (KDE, GNOME, XFCE, and so on).

Dec. 9, 2018, 3:15 p.m.

Linux

snap

I would like to welcome everyone to the continuation of the topic concerning a self-sufficient snap package. A lot of time has passed since the publication of the previous article in which I began to acquaint you with snap technology from my experience and application. All the fault of time, business, and laziness, of course, was also present) But we will now continue the topic)

Dec. 8, 2017, 9:29 a.m.
BlinCT

Всем привет.
Столкнулся с такой интересной ошибкой при использовании сборки с последней версией snapcraft version 2.35
Использую дистрибутивы Ubuntu 16.04 и KDE Neon LTS. Последний советую всем)
С предыдущей версией я собирал подобный проект без проблем, ниже привожу конфиг:

name: bsp095project
version: "1.0"
summary: timer
description: |
    Application for medical testing
confinement: strict
architectures: [amd64]

apps:
    timerproject:
        command: bin/run.sh $SNAP/usr/bin/ProjectTimer
        plugs: [home, unity7, x11, opengl]
          
parts:
    files:
        plugin: dump
        source: scripts
        after: [integration]

    integration:
        plugin: nil
        stage-packages:
            - libc-bin
            - libclutter-1.0-0
            - libxkbcommon0
            - ttf-ubuntu-font-family
            - dmz-cursor-theme
            - libglib2.0-0
            - light-themes
            - shared-mime-info
            - libqt5gui5
            - libgdk-pixbuf2.0-0
            - libqt5svg5
            - libqt5quick5
            - libsqlite0
            - libqt5sql5
            - libqt5sql5-sqlite
            - libsqlite3-0
            - appmenu-qt5
            - libqt5qml5
            - libqt5quickwidgets5
            - libgl1-mesa-dev
            - qml-module-qtquick-controls
            - qml-module-qtqml-models2
            - qmlscene
            - qml-module-qt-labs-folderlistmodel
            - qml-module-qtquick-xmllistmodel
        after: [desktop-qt5]

Так вот теперь после обновления получаю такую ошибку:

Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main all Packages                                                                                                                                                         
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main all Packages                                                                                                                                                         
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
  403  Forbidden                                                                                                                                                                                                                                    
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main all Packages                                                                                                                                                         
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 DEP-11 Metadata                                                                                                                                                
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64 Icons                                                                                                                                                   
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 64x64@2 Icons                                                                                                                                                 
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main DEP-11 128x128 Icons                                                                                                                                                 
Err http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main amd64 Packages                                                                                                                                                       
  403  Forbidden                                                                                                                                                                                                                                    
Ign http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial/main i386 Packages                                                                                                                                                        
Fetched 11.0 kB in 0s (0 B/s)                                                                                                                                                                                                                       
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 452, in update
    pulse_interval)
SystemError: W:The repository 'http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://archive.neon.kde.org/user/lts xenial InRelease' doesn't support architecture 'i386', E:Failed to fetch http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden, E:Some index files failed to download. They have been ignored, or old ones used instead.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/snapcraft", line 9, in <module>
    load_entry_point('snapcraft==2.35', 'console_scripts', 'snapcraft')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module>
    run(prog_name='snapcraft')
  File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke
    return Command.invoke(self, ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/__init__.py", line 124, in run
    ctx.forward(lifecyclecli.commands['snap'])
  File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
    return self.invoke(cmd, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 140, in snap
    project_options, directory=directory, output=output)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_packer.py", line 45, in snap
    execute('prime', project_options)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 80, in execute
    _Executor(config, project_options).run(step, part_names)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 175, in run
    self._run_step(step, part, part_names)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 205, in _run_step
    getattr(part, 'prepare_{}'.format(step))()
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 244, in prepare_pull
    self._fetch_stage_packages()
  File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 230, in _fetch_stage_packages
    stage_packages)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 293, in get
    with self._apt.archive(self._cache.base_dir) as apt_cache:
  File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 141, in archive
    raise e
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 132, in archive
    apt_cache = self._setup_apt(cache_dir)
  File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/_deb.py", line 125, in _setup_apt
    sources_list=sources_list_file)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 454, in update
    raise FetchFailedException(e)
apt.cache.FetchFailedException: W:The repository 'http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://archive.neon.kde.org/user/lts xenial InRelease' doesn't support architecture 'i386', E:Failed to fetch http://ppa.launchpad.net/varlesh-l/indicator-kdeconnect/ubuntu/dists/xenial/main/binary-amd64/Packages  403  Forbidden, E:Some index files failed to download. They have been ignored, or old ones used instead.

Если кто понимает в подобной ошибке или сталкивался уже то буду признателен за подмогу в решении проблемы)

Dec. 3, 2017, 9:05 p.m.

Linux

snap

Hello everyone.

It has long been planned to write a couple of articles on the topic of assembling self-contained snap packages.

If anyone does not know, then the snapcraft technology is a package assembly similar to * .deb or * .rpm. But for a slight difference, the snap package is completely self-contained. That is, he does not need anything from the system at all. At the moment snap packages support such distributions as Arch, Debian, Fedora, Gentoo and itself the progenitor of this technology Ubuntu. There are about 5-6 distributions that support, but I did not check them. On the forums write that it works)).

In this article I will describe a little the configuration file for the assembly.

IO
Jan. 20, 2019, 6:39 p.m.
Ivan Otreshko

C++ - Тест 003. Условия и циклы

  • Result:0points,
  • Rating points-10
IO
Jan. 20, 2019, 3:27 p.m.
Ivan Otreshko

C++ - Тест 003. Условия и циклы

  • Result:0points,
  • Rating points-10
v
Jan. 17, 2019, 11:51 a.m.
vitalir12

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:20points,
  • Rating points-10
Last comments
I
Jan. 16, 2019, 8:06 a.m.
IscanderChe

Заработало. Забыл model->select(); вписать.
I
Jan. 16, 2019, 8:02 a.m.
IscanderChe

Всё равно пусто, хотя строка с данными в базу добавляется.
Jan. 16, 2019, 7:51 a.m.
Евгений Легоцкой

потому, что нужно сохранять информацию для всех остальных ролей и столбцов через вызов переопределённого метода. Да к тому же вы ещё и зациклили вызов метода data. QVariant MySqlTableModel:...
I
Jan. 16, 2019, 7:43 a.m.
IscanderChe

Сделал вот так. В tableView ничего нет, кроме заголовка. QVariant MySqlTableModel::data(const QModelIndex &index, int role) const{ if (role == Qt::DisplayRole) { QTime ...
Now discuss on the forum
Jan. 21, 2019, 9:32 p.m.
Евгений Легоцкой

Добрый день. Потому, что C# и Java библиотеки внутри имеют байт-код, а не компилированные исходники в машинном коде, как в C++. Для их использования нужен JIT-компилятор, который на лету...
Jan. 21, 2019, 9:16 p.m.
Евгений Легоцкой

День добрый. Я у себя это дело запустил. Но у меня оба варианта заработало. Но у меня версия Qt была 5.11.2. Из-за этого версия Qt Quick 2.12,которую вы использовали, не нашлась. Я...
Jan. 21, 2019, 4:24 p.m.
Михаиллл

Нашел ссылку на древние типы данных , а тут нынешние их аналоги.Но все равно каое что непоня:что такое : LPCTSTR, CALLBACK (наверно QDialig),IDOK, EDITSTREAM, TCHARКод...
Jan. 21, 2019, 2:30 p.m.
Евгений Легоцкой

Порядок создания тем - пункт 4
Jan. 21, 2019, 7:36 a.m.
Евгений Легоцкой

Добрый день! Из ваего вопроса понятна первая часть. На сайте есть статья по динамическому созданию виджетов, посмотрите её для начала - Динамическое создание виджетов . ...
Join us in social networks

For registered users on the site there is a minimum amount of advertising