Error after installation

Rapid Photo Downloader cannot run without PyQt5 or Python (and many other dependencies). For now, PyQt5.11 does not run on Python 3.5.2. Period. For now, no program that uses PyQt 5.11 will work on Python 3.5.2.

Pip is not “broken” when it is used to install specific versions of a software library. That’s what it is meant to do. By default it will install the latest version, but that’s just a default. Sometimes installing the latest version breaks existing programs that work perfectly well with older versions. That’s life.

1 Like

Thanks for the clarification @damonlynch.

I’m sorry if you had the perception that I was disappointed at RapidPhotoDownloader. All the opposite, I love it! And I believe it’s a great job.

My disappointment is towards PyQt (not the first time it has issues like this…). I do appreciate that you actually figured a way to overcome this.

As for pip and it being ‘broken’… I meant that the software management is ‘broken’, not the software manager. However, I may have made an unhappy word choice. Pip works perfectly (actually I develop in Python, I know it quite well), as you said. It’s just a pity whenever one has to ‘manually’ track the versions installed of any lib.

Please, consider my suggestion just as it is: a suggestion for improvement. I do believe that a stand-alone self-contained package would be amazing (e.g. AppImage, flatpak, snap, …).

Thank you in turn for your clarification.

Regarding a snap, appimage or flatpak, yes they have their benefits. When I tried to make a snap, a bug in the snapcraft tool meant I could not proceed further. The snapcraft developers encouraged me to fix the bug but I don’t have time for that, so that’s not gone anywhere. An appimage is nice from some perspectives, but it’s a lot of work to prepare it. Work on that was started but it took too much time and it’s been dormant for many months. As for flatpak, I haven’t looked at it, and have no plans to because again I have no time to do it. Plus I’m cautious because Rapid Photo Downloader needs to read and write plenty of places, like the shared thumbnails directory, etc. Is that even possible from a flatpak app?

Later this year I hope to be able to reactivate the PPA, building on the work others already did with creating the Debian package for Rapid Photo Downloader, and its many dependencies, several of which had never been packaged.

Is the snap yaml file somewhere where I can see it?

It’s a year old, so I guess things could have changed since then with respect to the spec, but in any case here it is:
https://bazaar.launchpad.net/~dlynch3/rapid/zeromq_pyqt/files/head:/snap/

1 Like

Hey i have a similar problem after installation.
This is my progress. What can i do now?

$ python3 install.py 
Detected Linux distribution Linuxmint 18.3
Downloading https://launchpad.net/rapid/pyqt/0.9.13/+download/rapid-photo-downloader-0.9.13.tar.gz (6.8 MB)
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:02
Querying package system to see if an older version of Rapid Photo Downloader is installed (this may take a while)...
Checking if previous version installed with pip...

Installing application requirements...

Collecting psutil>=3.4.2 (from -r /tmp/tmpcro3e72b (line 4))
Collecting gphoto2>=1.4.0 (from -r /tmp/tmpcro3e72b (line 5))
Collecting pyzmq<=15.1.0,>=14.4.1 (from -r /tmp/tmpcro3e72b (line 6))
Collecting pyxdg>=0.25 (from -r /tmp/tmpcro3e72b (line 8))
  Using cached https://files.pythonhosted.org/packages/39/03/12eb9062f43adb94e30f366743cb5c83fd15fef026500cd4de42c7c12280/pyxdg-0.26-py2.py3-none-any.whl
Collecting arrow>=0.6.0 (from -r /tmp/tmpcro3e72b (line 9))
Collecting python-dateutil>=2.2 (from -r /tmp/tmpcro3e72b (line 10))
  Using cached https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl
Collecting rawkit>=0.6.0 (from -r /tmp/tmpcro3e72b (line 11))
  Using cached https://files.pythonhosted.org/packages/33/a1/b99402cc6b1d7296163a0e3e3a37f132d62e7a9e1662ada4749e419edaf7/rawkit-0.6.0-py2.py3-none-any.whl
Collecting PyPrind>=2.9.4 (from -r /tmp/tmpcro3e72b (line 12))
  Using cached https://files.pythonhosted.org/packages/1e/30/e76fb0c45da8aef49ea8d2a90d4e7a6877b45894c25f12fb961f009a891e/PyPrind-2.11.2-py3-none-any.whl
Collecting colorlog>=2.6 (from -r /tmp/tmpcro3e72b (line 13))
  Using cached https://files.pythonhosted.org/packages/69/eb/58ae10d3c46a0195ffdd0e3943d255d0d5029d71e5457785ecd665bcf0f3/colorlog-3.1.4-py2.py3-none-any.whl
Collecting easygui<=0.97.4 (from -r /tmp/tmpcro3e72b (line 16))
  Using cached https://files.pythonhosted.org/packages/c6/4d/79f8dd1d3c9e2bdc134ae07a5821831a37fb4e8f3f1243a069b8e70fdd2c/easygui-0.97.4-py2.py3-none-any.whl
Collecting colour (from -r /tmp/tmpcro3e72b (line 17))
  Using cached https://files.pythonhosted.org/packages/74/46/e81907704ab203206769dee1385dc77e1407576ff8f50a0681d0a6b541be/colour-0.1.5-py2.py3-none-any.whl
Collecting pymediainfo>=2.2.0 (from -r /tmp/tmpcro3e72b (line 18))
Collecting sortedcontainers (from -r /tmp/tmpcro3e72b (line 19))
  Using cached https://files.pythonhosted.org/packages/13/f3/cf85f7c3a2dbd1a515d51e1f1676d971abe41bba6f4ab5443240d9a78e5b/sortedcontainers-2.1.0-py2.py3-none-any.whl
Collecting requests (from -r /tmp/tmpcro3e72b (line 20))
  Using cached https://files.pythonhosted.org/packages/ff/17/5cbb026005115301a8fb2f9b0e3e8d32313142fe8b617070e7baad20554f/requests-2.20.1-py2.py3-none-any.whl
Collecting tornado<5.0 (from -r /tmp/tmpcro3e72b (line 21))
Collecting six>=1.5 (from python-dateutil>=2.2->-r /tmp/tmpcro3e72b (line 10))
  Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting setuptools (from pymediainfo>=2.2.0->-r /tmp/tmpcro3e72b (line 18))
  Using cached https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests->-r /tmp/tmpcro3e72b (line 20))
  Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->-r /tmp/tmpcro3e72b (line 20))
  Using cached https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->-r /tmp/tmpcro3e72b (line 20))
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->-r /tmp/tmpcro3e72b (line 20))
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Installing collected packages: psutil, gphoto2, pyzmq, pyxdg, six, python-dateutil, arrow, rawkit, PyPrind, colorlog, easygui, colour, setuptools, pymediainfo, sortedcontainers, urllib3, certifi, chardet, idna, requests, tornado
Successfully installed PyPrind-2.11.2 arrow-0.12.1 certifi-2018.11.29 chardet-3.0.4 colorlog-3.1.4 colour-0.1.5 easygui-0.97.4 gphoto2-1.8.5 idna-2.7 psutil-5.4.8 pymediainfo-3.0 python-dateutil-2.7.5 pyxdg-0.26 pyzmq-15.1.0 rawkit-0.6.0 requests-2.20.1 setuptools-40.6.2 six-1.11.0 sortedcontainers-2.1.0 tornado-4.5.3 urllib3-1.24.1
Segmentation fault

After “Segmentation fault” nothing happens. The installation isn’t complete.

I tried the suggested Work-arounds as mentioned above, but it doesn’t seem to work out for me…

$ python3 --version
Python 3.5.2

$ pip3 uninstall PyQt5 -y
Uninstalling PyQt5-5.11.3:
  Successfully uninstalled PyQt5-5.11.3
You are using pip version 8.1.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

$  pip3 install PyQt5==5.10 --user
Collecting PyQt5==5.10
  Downloading https://files.pythonhosted.org/packages/ae/4b/c7315ba7a266d493ee50c4597b1b4dea2348896a49115b5192b21adf1a47/PyQt5-5.10-5.10.0-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl (110.0MB)
    100% |████████████████████████████████| 110.0MB 12kB/s 
Collecting sip<4.20,>=4.19.4 (from PyQt5==5.10)
  Downloading https://files.pythonhosted.org/packages/6b/46/2869369c8ec634ec9dc714b84834e9264acbe87eb7492328efccfa0c855e/sip-4.19.8-cp35-cp35m-manylinux1_x86_64.whl (66kB)
    100% |████████████████████████████████| 71kB 3.3MB/s 
Installing collected packages: sip, PyQt5
Successfully installed PyQt5-5.10 sip-4.19.8

It works for me on my instance of LinuxMint 18.3. PyQt5-5.11.3 is the correct version of PyQt5 for you. I assume you are using a recent version of the install.py script?

I’m using the version directly from your website: https://launchpad.net/rapid/pyqt/0.9.13/+download/install.py
The old 0.4 version of your software worked fine for me. But I wanted to try the version 0.9.

After I did this…

# curl https://bootstrap.pypa.io/get-pip.py | python3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1622k  100 1622k    0     0  1914k      0 --:--:-- --:--:-- --:--:-- 1913k
Collecting pip
  Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 2.9MB/s 
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-18.1

…I got…

$ python3 install.py
Detected Linux distribution Linuxmint 18.3
Downloading https://launchpad.net/rapid/pyqt/0.9.13/+download/rapid-photo-downloader-0.9.13.tar.gz (6.8 MB)
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:02
Querying package system to see if an older version of Rapid Photo Downloader is installed (this may take a while)...
Checking if previous version installed with pip...

Installing application requirements...

Ignoring pyzmq: markers 'python_version >= "3.6"' don't match your environment
Ignoring typing: markers 'python_version < "3.5"' don't match your environment
Ignoring scandir: markers 'python_version < "3.5"' don't match your environment
Looking in indexes: https://pypi.python.org/simple/
Requirement already satisfied: psutil>=3.4.2 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 4)) (5.4.8)
Requirement already satisfied: gphoto2>=1.4.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 5)) (1.8.5)
Requirement already satisfied: pyzmq<=15.1.0,>=14.4.1 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 6)) (15.1.0)
Requirement already satisfied: pyxdg>=0.25 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 8)) (0.26)
Requirement already satisfied: arrow>=0.6.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 9)) (0.12.1)
Requirement already satisfied: python-dateutil>=2.2 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 10)) (2.7.5)
Requirement already satisfied: rawkit>=0.6.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 11)) (0.6.0)
Requirement already satisfied: PyPrind>=2.9.4 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 12)) (2.11.2)
Requirement already satisfied: colorlog>=2.6 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 13)) (3.1.4)
Requirement already satisfied: easygui<=0.97.4 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 16)) (0.97.4)
Requirement already satisfied: colour in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 17)) (0.1.5)
Requirement already satisfied: pymediainfo>=2.2.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 18)) (3.0)
Requirement already satisfied: sortedcontainers in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 19)) (2.1.0)
Requirement already satisfied: requests in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 20)) (2.20.1)
Requirement already satisfied: tornado<5.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp5ha37vir (line 21)) (4.5.3)
Requirement already satisfied: six>=1.5 in /home/jens/.local/lib/python3.5/site-packages (from python-dateutil>=2.2->-r /tmp/tmp5ha37vir (line 10)) (1.11.0)
Requirement already satisfied: setuptools in /home/jens/.local/lib/python3.5/site-packages (from pymediainfo>=2.2.0->-r /tmp/tmp5ha37vir (line 18)) (40.6.2)
Requirement already satisfied: idna<2.8,>=2.5 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp5ha37vir (line 20)) (2.7)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp5ha37vir (line 20)) (1.24.1)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp5ha37vir (line 20)) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp5ha37vir (line 20)) (2018.11.29)

PyQt5 will be upgraded from version 5.10 to version 5.11.3
Uninstalling PyQt5-5.10:
  Successfully uninstalled PyQt5-5.10
Collecting PyQt5
  Using cached https://files.pythonhosted.org/packages/d4/bf/d884da8e2f7096d201c891d515eb6813a8e85df5eb6f5e12e867bf1d831c/PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Requirement already satisfied: PyQt5_sip in /home/jens/.local/lib/python3.5/site-packages (4.19.13)
Installing collected packages: PyQt5
Successfully installed PyQt5-5.11.3

Installing application...

Processing /tmp/tmp4soguegh/rapid-photo-downloader-0.9.13.tar.gz
Building wheels for collected packages: rapid-photo-downloader
  Running setup.py bdist_wheel for rapid-photo-downloader: started
  Running setup.py bdist_wheel for rapid-photo-downloader: finished with status 'done'
  Stored in directory: /home/jens/.cache/pip/wheels/8b/3b/64/30e8b6830919caeba970e9922c543cb8e3f2d8488481768e9c
Successfully built rapid-photo-downloader
Installing collected packages: rapid-photo-downloader
Received error code 1
Failed to install application: exiting...

… “Error Code 1” seems to be a progress :slight_smile:

Then I tried…

$ python3 -m pip install --user --upgrade pip==9.0.3
Collecting pip==9.0.3
  Downloading https://files.pythonhosted.org/packages/ac/95/a05b56bb975efa78d3557efa36acaf9cf5d2fd0ee0062060493687432e03/pip-9.0.3-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 2.3MB/s 
Installing collected packages: pip
Successfully installed pip-9.0.3
You are using pip version 9.0.3, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

… and I got…

$ python3 install.py
Detected Linux distribution Linuxmint 18.3
Downloading https://launchpad.net/rapid/pyqt/0.9.13/+download/rapid-photo-downloader-0.9.13.tar.gz (6.8 MB)
0% [##############################] 100% | ETA: 00:00:00
Total time elapsed: 00:00:02
Querying package system to see if an older version of Rapid Photo Downloader is installed (this may take a while)...
Checking if previous version installed with pip...
Uninstalling rapid-photo-downloader-0.9.13:
  Successfully uninstalled rapid-photo-downloader-0.9.13

Installing application requirements...

Requirement already satisfied: psutil>=3.4.2 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 4))
Requirement already satisfied: gphoto2>=1.4.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 5))
Requirement already satisfied: pyzmq<=15.1.0,>=14.4.1 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 6))
Requirement already satisfied: pyxdg>=0.25 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 8))
Requirement already satisfied: arrow>=0.6.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 9))
Requirement already satisfied: python-dateutil>=2.2 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 10))
Requirement already satisfied: rawkit>=0.6.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 11))
Requirement already satisfied: PyPrind>=2.9.4 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 12))
Requirement already satisfied: colorlog>=2.6 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 13))
Requirement already satisfied: easygui<=0.97.4 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 16))
Requirement already satisfied: colour in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 17))
Requirement already satisfied: pymediainfo>=2.2.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 18))
Requirement already satisfied: sortedcontainers in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 19))
Requirement already satisfied: requests in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 20))
Requirement already satisfied: tornado<5.0 in /home/jens/.local/lib/python3.5/site-packages (from -r /tmp/tmp8fd6dlcr (line 21))
Requirement already satisfied: six>=1.5 in /home/jens/.local/lib/python3.5/site-packages (from python-dateutil>=2.2->-r /tmp/tmp8fd6dlcr (line 10))
Requirement already satisfied: setuptools in /home/jens/.local/lib/python3.5/site-packages (from pymediainfo>=2.2.0->-r /tmp/tmp8fd6dlcr (line 18))
Requirement already satisfied: certifi>=2017.4.17 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp8fd6dlcr (line 20))
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp8fd6dlcr (line 20))
Requirement already satisfied: idna<2.8,>=2.5 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp8fd6dlcr (line 20))
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /home/jens/.local/lib/python3.5/site-packages (from requests->-r /tmp/tmp8fd6dlcr (line 20))

Installing application...

Processing /tmp/tmpjyxi09a3/rapid-photo-downloader-0.9.13.tar.gz
Building wheels for collected packages: rapid-photo-downloader
  Running setup.py bdist_wheel for rapid-photo-downloader: started
  Running setup.py bdist_wheel for rapid-photo-downloader: finished with status 'done'
  Stored in directory: /home/jens/.cache/pip/wheels/94/43/97/a832068de821b60d5c9f1746574614daf802c22d100ec59e85
Successfully built rapid-photo-downloader
Installing collected packages: rapid-photo-downloader
Received error code 2
Failed to install application: exiting...

… an error 2.
It seems I’m leveling up.

What should I try next?

It’s difficult to say without knowing what else is going on in your system. What I do know is that I’ve confirmed it works for me on Mint 18.3.

Since you are comfortable installing different versions of pip, I suggest doing some analysis of the problem. Upgrade pip to the latest version. Use pip3 to install the tarball itself, using the --verbose and --no-deps command line options. The verbose output should indicate the nature of the error on your system.