You are not logged in.

#1 2019-07-26 19:46:03

bbaserdem
Member
Registered: 2017-07-27
Posts: 31

Python app works through pip, but not through my PKGBUILD.

I have been trying to package a program.

This is the app; https://github.com/SamSchott/maestral-dropbox

This is my pkgbuild; https://github.com/bbaserdem/Etcfiles/b … t/PKGBUILD

I followed the wiki for the pkgbuild. When I install the program through pip (all dependencies satisfied by pacman) the gui works. If I install through my package, the gui does not work, and gives me this error; I can't figure out what I am doing wrong? I don't get the qt errors, and have a gui when I install through pip.

% maestral-gui
Gkr-Message: 15:44:53.667: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
 > Loading access token...
 > MaestralClient is ready.
Up to date
Maestral index could not be found. Rebuild if necessary.
qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 724, resource id: 0, major code: 1 (CreateWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 725, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 726, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 727, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 729, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 730, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 731, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 736, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 737, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 738, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 741, resource id: 75497478, major code: 2 (ChangeWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 742, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 745, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 746, resource id: 75497478, major code: 20 (GetProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 747, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 750, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 751, resource id: 75497478, major code: 129 (Unknown), minor code: 2
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 752, resource id: 75497478, major code: 19 (DeleteProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 753, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 755, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 756, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 758, resource id: 75497478, major code: 19 (DeleteProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 760, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 761, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 762, resource id: 75497478, major code: 12 (ConfigureWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 763, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 764, resource id: 75497478, major code: 12 (ConfigureWindow), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 780, resource id: 75497478, major code: 2 (ChangeWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 781, resource id: 75497478, major code: 2 (ChangeWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 782, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 783, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 784, resource id: 75497478, major code: 20 (GetProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 785, resource id: 75497478, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 786, resource id: 75497478, major code: 8 (MapWindow), minor code: 0

Offline

#2 2019-07-26 20:30:41

Fixxer
Member
From: Sosnowiec/Poland
Registered: 2011-08-29
Posts: 158
Website

Re: Python app works through pip, but not through my PKGBUILD.

Look at optional dependencies of package python-keyrings-alt, there is libgnome-keyring, which optional dependency is gnome-keyring, which provides:

/etc/xdg/autostart/gnome-keyring-secrets.desktop

Is this service running?

pidof gnome-keyring-daemon

I'm working on latest "stable" release tarball and works good unless I choose "Choose folders to sync". Probably it needs updated python-dropbox (tested with pip - all dependencies from repo but python-dropbox, etc.) - current 9.2.0.

You can try with this pkgbuild - versioned, not master:
https://pastebin.com/raw/LQCeXvVm .

Seems to be interesting, worth attention project, 3rd paragraph.

Last edited by Fixxer (2019-07-26 20:37:10)


marcin82

Offline

#3 2019-07-26 20:36:57

bbaserdem
Member
Registered: 2017-07-27
Posts: 31

Re: Python app works through pip, but not through my PKGBUILD.

Thank you. Good to know if you are working on a stable release.

I don't have gnomeskeyring. But the local pip installation works, without the keyring. I suspect it is a pyqt issue, but I don't understand why local pip works and the pkgbuild installation fails. I'll give your pkgbuild a try.

This is the pip output; (I have it installed locally with pip)

% pip install --user maestral
Requirement already satisfied: maestral in /usr/lib/python3.7/site-packages (0.2.4.dev1)
Requirement already satisfied: click in /usr/lib/python3.7/site-packages (from maestral) (7.0)
Requirement already satisfied: dropbox in /usr/lib/python3.7/site-packages (from maestral) (9.2.0)
Requirement already satisfied: watchdog in /usr/lib/python3.7/site-packages (from maestral) (0.9.0)
Requirement already satisfied: blinker in /usr/lib/python3.7/site-packages (from maestral) (1.4)
Requirement already satisfied: requests in /usr/lib/python3.7/site-packages (from maestral) (2.22.0)
Requirement already satisfied: u-msgpack-python in /usr/lib/python3.7/site-packages (from maestral) (2.5.1)
Requirement already satisfied: keyring in /usr/lib/python3.7/site-packages (from maestral) (19.0.1)
Requirement already satisfied: keyrings.alt in /usr/lib/python3.7/site-packages (from maestral) (3.1.1)
Requirement already satisfied: six>=1.3.0 in /usr/lib/python3.7/site-packages (from dropbox->maestral) (1.12.0)
Requirement already satisfied: PyYAML>=3.10 in /usr/lib/python3.7/site-packages (from watchdog->maestral) (5.1.1)
Requirement already satisfied: argh>=0.24.1 in /usr/lib/python3.7/site-packages (from watchdog->maestral) (0.26.2)
Requirement already satisfied: pathtools>=0.1.1 in /usr/lib/python3.7/site-packages (from watchdog->maestral) (0.1.2)
Requirement already satisfied: chardet>=3.0.2 in /usr/lib/python3.7/site-packages (from requests->maestral) (3.0.4)
Requirement already satisfied: idna>=2.5 in /usr/lib/python3.7/site-packages (from requests->maestral) (2.8)
Requirement already satisfied: urllib3>=1.21.1 in /usr/lib/python3.7/site-packages (from requests->maestral) (1.25.3)
Requirement already satisfied: entrypoints in /usr/lib/python3.7/site-packages (from keyring->maestral) (0.3)
Requirement already satisfied: secretstorage in ./.local/lib/python3.7/site-packages (from keyring->maestral) (3.1.1)
Requirement already satisfied: jeepney in /usr/lib/python3.7/site-packages (from secretstorage->keyring->maestral) (0.4)
Requirement already satisfied: cryptography in /usr/lib/python3.7/site-packages (from secretstorage->keyring->maestral) (2.7)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python3.7/site-packages (from cryptography->secretstorage->keyring->maestral) (0.24.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /usr/lib/python3.7/site-packages (from cryptography->secretstorage->keyring->maestral) (1.12.3)
Requirement already satisfied: pycparser in /usr/lib/python3.7/site-packages (from cffi!=1.11.3,>=1.8->cryptography->secretstorage->keyring->maestral) (2.19)

EDIT: I rewrote the pkgbuild to fit to your specifications, and I am getting the error still. so I assume its something on the main branch. Your package build is fine with me, until I get this error;

Gkr-Message: 17:05:29.707: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
 > Loading access token...
 > MaestralClient is ready.
Up to date
Maestral index could not be found. Rebuild if necessary.
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/maestral/gui/first_sync_dialog.py", line 200, in on_dropbox_path
    self.populate_folders_list()
  File "/usr/lib/python3.7/site-packages/maestral/gui/first_sync_dialog.py", line 241, in populate_folders_list
    root_folders = self.mdbx.client.list_folder("", recursive=False)
  File "/usr/lib/python3.7/site-packages/maestral/client.py", line 476, in list_folder
    **kwargs
TypeError: files_list_folder() got an unexpected keyword argument 'include_non_downloadable_files'
/usr/bin/maestral-gui: line 6: 15873 Aborted                 (core dumped) maestral gui

Last edited by bbaserdem (2019-07-26 21:06:21)

Offline

#4 2019-07-26 21:01:38

Fixxer
Member
From: Sosnowiec/Poland
Registered: 2011-08-29
Posts: 158
Website

Re: Python app works through pip, but not through my PKGBUILD.

Tested master branch, similar errors:
https://pastebin.com/raw/vkjxtrUV .


marcin82

Offline

#5 2019-07-26 21:07:00

bbaserdem
Member
Registered: 2017-07-27
Posts: 31

Re: Python app works through pip, but not through my PKGBUILD.

At least good to know that I wrote the pkgbuild properly.

Offline

#6 2019-07-26 21:11:21

Fixxer
Member
From: Sosnowiec/Poland
Registered: 2011-08-29
Posts: 158
Website

Re: Python app works through pip, but not through my PKGBUILD.

[...]TypeError: files_list_folder() got an unexpected keyword argument 'include_non_downloadable_files'

Probably the reason is python-dropbox version in repository, I wrote earlier, it was tested as far as I was able to.

Last edited by Fixxer (2019-07-26 21:12:36)


marcin82

Offline

#7 2019-07-26 21:31:18

bbaserdem
Member
Registered: 2017-07-27
Posts: 31

Re: Python app works through pip, but not through my PKGBUILD.

It is. Just locally installed the 9.4.0 version of dropbox and i am able to move past the error.

Last edited by bbaserdem (2019-07-26 21:31:33)

Offline

#8 2019-07-26 21:36:35

Fixxer
Member
From: Sosnowiec/Poland
Registered: 2011-08-29
Posts: 158
Website

Re: Python app works through pip, but not through my PKGBUILD.

--force-good

big_smile


marcin82

Offline

Board footer

Powered by FluxBB