I haven’t seen a flatpak of RPD either, and I’ve been looking. Its on my list of things to try, and I enquired about it in the flatpak IRC a while ago and got some advice.
The nice thing I’ve found about flatpak is that the community is helpful, so if I can pull something together, there is a strong possibility to get help with the final bits.
I think you have identified something important there, because almost always, something goes wrong and you cannot fix it yourself. The snap community is also helpful and engaged, but the point-person for the bug I encountered with snap wanted to me to fix it, and I just don’t have time these days to be contributing to other projects.
gentoo has changed to python 3.7 as its default. I guess due to this RPD does not work anymore on my laptop (PC yet to be tested).
So I downloaded the install.py again and started with: python3.7 install(1).py
and I got:
Detected Linux distribution Gentoo 0.0
These Python3 packages will be upgraded for your user (i.e. not system-wide): pip, setuptools, wheel
Der folgende Befehl wird ausgeführt:
/usr/bin/python3.7 -m pip install --user --upgrade pip setuptools wheel --disable-pip-version-check
Collecting pip
Downloading pip-20.1.1-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 2.1 MB/s
Collecting setuptools
Downloading setuptools-46.4.0-py3-none-any.whl (583 kB)
|████████████████████████████████| 583 kB 3.8 MB/s
Requirement already up-to-date: wheel in /usr/lib/python3.7/site-packages (0.34.2)
Installing collected packages: pip, setuptools
Successfully installed pip-20.1.1 setuptools-46.4.0
Restarting script using /usr/bin/python3.7
Downloading https://launchpad.net/rapid/pyqt/0.9.24/+download/rapid-photo-downloader-0.9.24.tar.gz (8.15 MB)
Downloading.... done!
Es wird geprüft, ob eine ältere Version mit pip installiert wurde …
This program requires:
Gdk 3.0 from gi.repositry
Please install them using your distribution's standard installation tools.
eix gdk gives me 2.4 as the latest (sorry for Geman in between; Beschreibung = description):
Traceback (most recent call last):
File "/home/gerber/.local/bin/rapid-photo-downloader", line 5, in <module>
from raphodo.rapid import main
ModuleNotFoundError: No module named 'raphodo'
openSUSE Tumbleweed is on python >= 3.7 for a while and our rpd package works very nicely with both python versions (3.7.x and 3.8.x). maybe someone could just do an ebuild or rpd?
You need to install the gentoo package for PyGObject (which in turn requires pycairo). I have no idea what those two packages are called on gentoo, sorry.
Rapid Photo Downloader works with Python 3.4 - 3.8.
And yes, it would be great if someone did an ebuild.
@AxelG
First I would like to know where to find the ebuild you use.
To the problem: As you know Gentoo allows you to install different versions of certain packages at the same time (-> slots). So the obvious question: After updating python to 3.7 did portage rebuild all python modules? If not simply run emerge -uDN @world to get a deep (=including all dependencies) update picking up USE-Flag changes.
Equally important is that after the python update you set the system python interpreter to python3.7. emerge won’t uninstall python-3.6 by itself. So first use eselect python to set the interpreter to python3.7, then emerge -C python:3.6
(What I don’t understand ATM: RPD is a PyQT5 application, so what do you need gdk for?)
Short answer: That’s a remnant from version 0.9.22 that should be removed.
Longer answer: Version 0.9.22 used Gdk to detect if any screens had scaling enabled very early in application startup. Using Qt to detect the scaling that early in the application lifetime would fail on a Gtk based desktop, because Gtk and KDE take different approaches to low level X settings. The code using Gdk was removed in 0.9.23 and replaced with code that probes xsettings instead. Detecting scaling very early in application start up is needed because simply enabling HighDPI scaling when it was not needed (i.e. system scaling is 1.0) resulted in severe window rendering corruption on some Gtk desktops.
$ python3 import gi
/usr/lib/python-exec/python3.7/python3: can't open file 'import': [Errno 2] No such file or directory
If I would know, what indeed I will do an “equery check…” and also I will look after above file.
…done…all relevant software installations are healthy:
# equery check dev-lang/python
* Checking dev-lang/python-2.7.18 …
4580 out of 4580 files passed
* Checking dev-lang/python-3.6.10-r2 ...
7045 out of 7045 files passed
* Checking dev-lang/python-3.7.7-r2 ...
7278 out of 7278 files passed
* Checking dev-lang/python-3.8.2-r2 ...
7494 out of 7494 files passed
.
equery check pycairo
* Checking dev-python/pycairo-1.18.2 ...
49 out of 49 files passed
.
equery check pygobject
* Checking dev-python/pygobject-2.28.6-r55 ...
196 out of 196 files passed
* Checking dev-python/pygobject-3.34.0 ...
231 out of 231 files passed
.
As you could see from this thread above, there is no ebuild, I use the install.py from the homepage
that is indeed in my /etc/cron.weekly (together with an eix-sync)
It would be embarrasing if I wouldn’t
$ eselect python list
Available Python interpreters, in order of preference:
[1] python3.7
[2] python3.6
[3] python2.7
[4] python3.8 (fallback)
Hmmm as we see from above, python 3.6 is still there, I knew that, just have difficulties to believe, this would make any difference. Lensfun still need 3.6 hence I won’t uninstall 3.6 atm…
Sorry, I meant you had to run the Python interpreter from within a terminal window and run those two commands within the interpreter, not from the shell. In any case, it’s somewhat irrelevant because you don’t need gdk in Rapid Photo Downloader >= 0.9.23. I have updated the install.py script to reflect this.
Delete the current install.py script and download and use this one (enter the command on one line):
Traceback (most recent call last):
File "./rapid-photo-downloader", line 5, in <module>
from raphodo.rapid import main
File "/home/gerber/.local/lib/python3.7/site-packages/raphodo/rapid.py", line 125, in <module>
from raphodo.thumbnaildisplay import (
File "/home/gerber/.local/lib/python3.7/site-packages/raphodo/thumbnaildisplay.py", line 72, in <module>
from raphodo.rpdsql import ThumbnailRowsSQL, ThumbnailRow
File "/home/gerber/.local/lib/python3.7/site-packages/raphodo/rpdsql.py", line 32, in <module>
from tenacity import retry, stop_after_attempt
File "/usr/lib/python3.7/site-packages/tenacity/__init__.py", line 352
from tenacity.async import AsyncRetrying
^
SyntaxError: invalid syntax
That indicates a problem in the python package tenacity in your system. I don’t know the steps that led to this problem, because I don’t use gentoo. That’s something you’ll need to figure out in order to get any program working that uses tenacity.
on my laptop during installation I saw a weird message about upgrading PyQT5 from 4.xx.yy to 12.xx.yy.
EDIT1 after double check to my PC
mit-krb5 is needed, but not checked and missing on my laptop. So a matter of time
After successfull installation RPD still don’t wanna work…
And uppon execution, file or folder not found for libgssapi_krb5.so.2
$ ./rapid-photo-downloader
Traceback (most recent call last):
File "./rapid-photo-downloader", line 5, in <module>
from raphodo.rapid import main
File "/home/gerber/.local/lib/python3.7/site-packages/raphodo/rapid.py", line 90, in <module>
from PyQt5.QtNetwork import QLocalSocket, QLocalServer
ImportError: libgssapi_krb5.so.2: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
usually bith machines are the same up2date… I will run another update now anyways, which on this older lenovo T450s will take some time