Author

Topic: installing electrum on raspberry pi failed on PyQt5 (Read 319 times)

newbie
Activity: 13
Merit: 3
Yes, this here: https://ubuntu-mate.org/raspberry-pi
Sorry for not putting in the link before. I used the recommended version for ARMv7, though Raspi3 has actually a ARMv8 processor.

The thing is, it has a newer version of python3 as part of the system. I had to fiddle with the config file a little bit, offset and stuff. Then I upgraded the whole system first, inclusive dist-upgrade, which took some rounds. Then I had to install python3-pyqt5, and then it worked. I hope I forgot nothing to list here. I didn't try to install Electrum this time, only went with 'run_electrum'.
Better to listen to music or a podcast till you get there, a very little bit of rum in a cup of cocoa may also be helpful. Cheesy Because stress: WHY CAN'T THINGS JUST WORK! Cheesy

Of course, I had the good old Linux desktop problem, of changing my user password, and then changing the keyboard layout. So the password was wrong, and I didn't know what I typed. Yeah, try to avoid that...

I'll be able to pay my rent soon, ~10 days too late, but better than never. Grin

EDIT: I added this solution to Stackexchange, so others may not fall into the same trap.
HCP
legendary
Activity: 2086
Merit: 4363
So, just to clarify, you were able to get Electrum running with the Ubuntu Mate distro? Huh
newbie
Activity: 13
Merit: 3
Hi, I switched to Ubuntu Mate (Bionic) which works for that purpose (no sound). I recommend installing Chromium, though. Not in general, but the Raspi doesn't work well with Firefox. Also get h264ify and 'ublock origin' plugins. You shouldn't surf with your wallet installation to much, for security reasons, but sometimes it might be convenient or even necessary.   
newbie
Activity: 13
Merit: 3
Thanks for the fast answers, I will wait a while and then try something else if no better solution shows up. It seems to be a Raspi specific problem with the USB ports, so I'll discuss that part on their site.
Solved: There is no USB problem, and login also works.

Current status is, lightdm isn't working. I've got no IDE.
newbie
Activity: 13
Merit: 3
Thanks, sounds like fun. NOT.

I tried to upgrade Raspian from Strech to Debian Buster, got stuck. Do NOT do this on your regular installation. I used a new one extra for that. It's also not fun.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
Same problem here. Around 25 Million Raspberry Pis have been sold so far, maybe should work on those. Just saying. 

The #electrum dev chat on IRC says it's Debians fault:  "...it's in the context of a Debian policy issue that adversely impacted Electrum ..."

I've heard a lot about these issues in many Raspberry Pi users that have a problem installing the latest Electrum or they can't make Electrum work in debian.

How about installing a lower version of Electrum to Pi and make it as cold storage instead?
Then if you are planning to make a transaction use coinb.in and sign transaction with your cold wallet?

This is the only an alternative solution if you failed on installing Electrum with PyQt5 on Rasp Pi you can still have Electrum wallet but in lower version and offline.
newbie
Activity: 13
Merit: 3
Same problem here. Around 25 Million Raspberry Pis have been sold so far, maybe should work on those. Just saying. 

The #electrum dev chat on IRC says it's Debians fault:  "...it's in the context of a Debian policy issue that adversely impacted Electrum ..."
newbie
Activity: 10
Merit: 3
Yes, and then I get

Code:
Traceback (most recent call last):
  File "/home/pi/Downloads/Electrum-3.3.6/electrum/plugin.py", line 76, in load_plugins
    spec.loader.exec_module(module)
  File "", line 678, in exec_module
  File "", line 205, in _call_with_frames_removed
  File "/home/pi/Downloads/Electrum-3.3.6/electrum/plugins/hw_wallet/__init__.py", line 1, in
    from .plugin import HW_PluginBase
SystemError: Parent module 'electrum.plugins.hw_wallet' not loaded, cannot perform relative import

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pi/Downloads/Electrum-3.3.6/run_electrum", line 357, in
    plugins = init_plugins(config, config.get('gui', 'qt'))
  File "/home/pi/Downloads/Electrum-3.3.6/run_electrum", line 265, in init_plugins
    return Plugins(config, gui_name)
  File "/home/pi/Downloads/Electrum-3.3.6/electrum/util.py", line 356, in
    return lambda *args, **kw_args: do_profile(args, kw_args)
  File "/home/pi/Downloads/Electrum-3.3.6/electrum/util.py", line 352, in do_profile
    o = func(*args, **kw_args)
  File "/home/pi/Downloads/Electrum-3.3.6/electrum/plugin.py", line 64, in __init__
    self.load_plugins()
  File "/home/pi/Downloads/Electrum-3.3.6/electrum/plugin.py", line 78, in load_plugins
    raise Exception(f"Error pre-loading {full_name}: {repr(e)}") from e
Exception: Error pre-loading electrum.plugins.hw_wallet: SystemError("Parent module 'electrum.plugins.hw_wallet' not loaded, cannot perform relative import",)

which boils down to

Code:
electrum.plugins.hw_wallet' not loaded

  Smiley
legendary
Activity: 3710
Merit: 1586
Instead of installing it just untar the tarball, change to the directory that is created and ./run_electrum.
newbie
Activity: 10
Merit: 3
I narrowd my problem down.
compiled a new electrum with new Python 3.6.1 from https://github.com/jjhelmus/berryconda
and now I can run electrum .. , and get :

Code:
Exception: Error pre-loading electrum.plugins.hw_wallet: SystemError("Parent module 'electrum.plugins.hw_wallet' not loaded, cannot perform relative import",)

So I need this hw_wallet pluging; even If I don't have a hardware wallet.

Where can I get this plugin?

Thanks,
Rik. Wink
newbie
Activity: 10
Merit: 3

Thanks, but it downloads electrum-3.3.6-x86
And I would need an electrum-3.3.6-arm
Running electrum now gives me:

cannot execute binary file: Exec format error
legendary
Activity: 3710
Merit: 1586
Just use the appimage version. Here's a script that'll grab that for you: https://github.com/AbdussamadA/electrum-install
newbie
Activity: 10
Merit: 3
Hello,

I tried to install the newest electrum on a rasberry pi with OS Raspbian Stretch
It did succeed.
However when I run 'electrum' it gives the following error:

Code:
/home/pi/.local/lib/python3.7/site-packages/google/protobuf/internal/well_known_types.py:788: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.MutableMapping.register(Struct)
/home/pi/.local/lib/python3.7/site-packages/google/protobuf/internal/well_known_types.py:832: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  collections.MutableSequence.register(ListValue)
Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5'

I've done all I could think of.
Twice.
Below is a transcript of my journey from the second time.
I'm sure I'm missing something tiny.
But what?
Please help.

Code:
sudo apt-get update
sudo apt-get install python3-pyqt5

cd Downloads

wget https://download.electrum.org/3.3.5/Electrum-3.3.5.tar.gz
wget https://download.electrum.org/3.3.5/Electrum-3.3.5.tar.gz.asc

gpg --verify Electrum-3.3.5.tar.gz.asc
  ==>>  gpg: keybox '/home/pi/.gnupg/pubring.kbx' created
        gpg: assuming signed data in 'Electrum-3.3.5.tar.gz'
        gpg: Signature made Thu 09 May 2019 19:00:48 CEST
        gpg:                using RSA key 6694D8DE7BE8EE5631BED9502BD5824B7F9470E6
        gpg: Can't check signature: No public key

python3 Electrum-3.3.5/run_electrum
  ==>>  File "Electrum-3.3.5/run_electrum", line 64
          sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install '")

# okee, then we go try to install it.

sudo apt-get install python3-setuptools python3-pip
  ==>>  Reading package lists... Done
        Building dependency tree       
        Reading state information... Done
        python3-setuptools is already the newest version (33.1.1-1).
        python3-setuptools set to manually installed.
        python3-pip is already the newest version (9.0.1-2+rpt2).
        0 upgraded, 0 newly installed, 0 to remove and 156 not upgraded.
       
python3 -m pip install --user Electrum-3.3.5.tar.gz     
  ==>>  Processing ./Electrum-3.3.5.tar.gz
            Complete output from command python setup.py egg_info:
            Error: Electrum requires Python version >= 3.6.1...
   
            ----------------------------------------
        Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-hok31pej-build/
       
python3 -V
   ==>>  Python 3.5.3
   
# okee, we'll upgrade to Python-3.7.3
# from: https://raspberrypi.stackexchange.com/questions/59381/how-do-i-update-my-rpi3-to-python-3-6#59391

cd ..

wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz.asc
gpg --verify Python-3.7.3.tgz.asc
   ==>>  gpg: assuming signed data in 'Python-3.7.3.tgz'
         gpg: Signature made Mon 25 Mar 2019 22:00:36 CET
         gpg:                using RSA key 0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D
         gpg: Can't check signature: No public key

 tar xzvf Python-3.7.3.tgz


cd Python-3.7.3/

./configure
   ==>>  If you want a release build with all stable optimizations active (PGO, etc),
         please run ./configure --enable-optimizations

./configure --enable-optimizations

make -j4;       # simply uses all 4 rpi cores in the make process (much faster)
# pfff waiting, waiting, raspi slows down signifficantly sometimes during the process
# stuck for ages at : 0:08:39 load avg: 2.32 [ 25/416] test_asyncio
# 0:26:42 load avg: 2.17 [ 26/416] test_asyncore -- test_asyncio passed in 18 min 3 sec
# 0:26:44 load avg: 2.17 [ 27/416] test_atexit -- test_asyncore skipped
# 0:55:41 load avg: 2.51 [ 84/416] test_contextlib_async
# Task was destroyed but it is pending!
# task: ()>>
# Task was destroyed but it is pending!
# task: ()>>
# 0:56:43 load avg: 2.38 [ 93/416] test_curses -- test_ctypes skipped
# 0:56:46 load avg: 2.35 [ 94/416] test_dataclasses -- test_curses skipped (resource denied)
# 0:59:12 load avg: 2.21 [ 99/416] test_dbm_ndbm -- test_dbm_gnu skipped
# 0:59:15 load avg: 2.19 [100/416] test_decimal -- test_dbm_ndbm skipped
# 1:05:22 load avg: 2.13 [107/416] test_dict_version -- test_devpoll skipped
# 1:18:17 load avg: 2.10 [171/416] test_hashlib
# /home/pi/Downloads/Python-3.7.3/Lib/test/test_hashlib.py:90: UserWarning: Did a C extension fail to compile? No module named '_hashlib'
#   warnings.warn('Did a C extension fail to compile? %s' % error)
# 1:19:49 load avg: 2.06 [181/416] test_imaplib -- test_idle skipped
# 1:34:07 load avg: 2.27 [201/416] test_largefile -- test_kqueue skipped
# 1:45:16 load avg: 2.04 [211/416] test_macpath -- test_lzma skipped
# 1:49:23 load avg: 2.18 [225/416] test_multibytecodec -- test_msilib skipped
# 1:50:31 load avg: 2.11 [227/416] test_multiprocessing_forkserver -- test_multiprocessing_fork skipped
# 1:50:36 load avg: 2.10 [228/416] test_multiprocessing_main_handling -- test_multiprocessing_forkserver skipped
# 1:50:40 load avg: 2.10 [229/416] test_multiprocessing_spawn -- test_multiprocessing_main_handling skipped
# 1:50:45 load avg: 2.10 [230/416] test_netrc -- test_multiprocessing_spawn skipped
# 1:53:39 load avg: 2.19 [242/416] test_osx_env -- test_ossaudiodev skipped (resource denied)
# 2:07:43 load avg: 2.29 [280/416] test_regrtest -- test_readline skipped
# 2:18:54 load avg: 2.40 [306/416] test_sndhdr -- test_smtpnet skipped
# 2:20:05 load avg: 2.33 [309/416] test_sort -- test_socketserver skipped (resource denied)
# 2:20:29 load avg: 2.31 [312/416] test_sqlite -- test_spwd failed
# 2:20:34 load avg: 2.28 [313/416] test_ssl -- test_sqlite skipped
# 2:20:40 load avg: 2.24 [314/416] test_startfile -- test_ssl skipped
# 2:20:45 load avg: 2.22 [315/416] test_stat -- test_startfile skipped
# 2:23:25 load avg: 2.40 [328/416] test_sunau -- test_subprocess skipped
# 2:24:25 load avg: 2.28 [336/416] test_sys_settrace
# unhandled exception during asyncio.run() shutdown
# task: ()> exception=RuntimeError("can't send non-None value to a just-started coroutine")>
# RuntimeError: can't send non-None value to a just-started coroutine
# unhandled exception during asyncio.run() shutdown
# task: ()> exception=RuntimeError("can't send non-None value to a just-started coroutine")>
# RuntimeError: can't send non-None value to a just-started coroutine
# 2:26:45 load avg: 2.54 [341/416] test_telnetlib -- test_tcl skipped
# 2:29:08 load avg: 2.05 [353/416] test_tix -- test_timeout skipped (resource denied)
# 2:29:13 load avg: 2.05 [354/416] test_tk -- test_tix skipped
# 2:29:17 load avg: 2.12 [355/416] test_tokenize -- test_tk skipped
# 2:35:33 load avg: 2.16 [361/416] test_ttk_textonly -- test_ttk_guionly skipped
# 2:35:38 load avg: 2.15 [362/416] test_tuple -- test_ttk_textonly skipped
# 2:39:02 load avg: 2.02 [364/416] test_typechecks -- test_turtle skipped
# 2:43:14 load avg: 2.39 [380/416] test_urllib_response -- test_urllib2net skipped (resource denied)
# 2:43:25 load avg: 2.33 [382/416] test_urlparse -- test_urllibnet skipped (resource denied)

#  ... probably lost some ...
 
# running build
# running build_ext
# INFO: Can't locate Tcl/Tk libs and/or headers
 
# In file included from /home/pi/Downloads/Python-3.7.3/Modules/_sha3/sha3module.c:113:0:
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c: In function ‘_PySHA3_KeccakP1600_SetBytesInLaneToZero’:
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:97:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#      low = *((UINT32*)(laneAsBytes+0));
#      ^~~
# In file included from /home/pi/Downloads/Python-3.7.3/Modules/_sha3/sha3module.c:113:0:
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c: In function ‘_PySHA3_KeccakP1600_AddBytesInLane’:
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:152:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#      low = *((UINT32*)(laneAsBytes+0));
#      ^~~
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c: In function ‘_PySHA3_KeccakP1600_ExtractBytesInLane’:
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:296:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#      *((UINT32*)(laneAsBytes+0)) = low;
#      ^
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c: In function ‘_PySHA3_KeccakP1600_ExtractAndAddBytesInLane’:
# /home/pi/Downloads/Python-3.7.3/Modules/_sha3/kcp/KeccakP-1600-inplace32BI.c:369:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
#      *((UINT32*)(laneAsBytes+0)) = low;
#      ^

# INFO: Could not locate ffi libs and/or headers

# Python build finished successfully!
# The necessary bits to build these optional modules were not found:
# _bz2                  _curses               _curses_panel     
# _dbm                  _gdbm                 _hashlib           
# _lzma                 _sqlite3              _ssl               
# _tkinter              _uuid                 readline           
# To find the necessary bits, look in setup.py in detect_modules() for the module's name.


# The following modules found by detect_modules() in setup.py, have been
# built by the Makefile instead, as configured by the Setup files:
# _abc                  atexit                pwd               
# time                                                           


# Failed to build these modules:
# _ctypes                                                       


# Could not build the ssl module!
# Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
# LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

sudo make install

#  from _ctypes import Union, Structure, Array
# ModuleNotFoundError: No module named '_ctypes'
# Makefile:1130: recipe for target 'install' failed
# make: *** [install] Error 1


''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
# we continue:

sudo apt-get install libffi-dev

# collecting setuptools
# Collecting pip
# Installing collected packages: setuptools, pip
# Successfully installed pip-19.0.3 setuptools-40.8.0

cd ../Electrum-3.3.5/
python3 ./run_electrum

# /home/pi/Downloads/Electrum-3.3.5/packages/google/protobuf/internal/well_known_types.py:788: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableMapping.register(Struct)
# /home/pi/Downloads/Electrum-3.3.5/packages/google/protobuf/internal/well_known_types.py:832: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableSequence.register(ListValue)
# Traceback (most recent call last):
#   File "./run_electrum", line 79, in
#     from electrum.logging import get_logger, configure_logging
#   File "/home/pi/Downloads/Electrum-3.3.5/electrum/__init__.py", line 2, in
#     from .util import format_satoshis
#   File "/home/pi/Downloads/Electrum-3.3.5/electrum/util.py", line 42, in
#     import ssl
#   File "/usr/local/lib/python3.7/ssl.py", line 98, in
#     import _ssl             # if we can't import it, let the error propagate
# ModuleNotFoundError: No module named '_ssl'

sudo apt-get install libssl-dev

python3 ./run_electrum

# ModuleNotFoundError: No module named '_ssl'

sudo apt-get install libssl-dev libreadline-dev libbz2-dev build-essential sqlite3 tk-dev libsqlite3-dev libc6-dev  libgdbm-dev libncurses-dev -y

python3 ./run_electrum

# ModuleNotFoundError: No module named '_ssl'

cd ../Python-3.7.3/

./configure --enable-optimizations

make -j4

sudo make install

# Requirement already up-to-date: setuptools in /usr/local/lib/python3.7/site-packages (40.8.0)
# Requirement already up-to-date: pip in /usr/local/lib/python3.7/site-packages (19.0.3)

cd ../Electrum-3.3.5/

python3 ./run_electrum

# /home/pi/Downloads/Electrum-3.3.5/packages/google/protobuf/internal/well_known_types.py:788: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableMapping.register(Struct)
# /home/pi/Downloads/Electrum-3.3.5/packages/google/protobuf/internal/well_known_types.py:832: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableSequence.register(ListValue)
# Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5'

reboot

cd Downloads/Electrum-3.3.5/

python3 ./run_electrum

# /home/pi/Downloads/Electrum-3.3.5/packages/google/protobuf/internal/well_known_types.py:788: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableMapping.register(Struct)
# /home/pi/Downloads/Electrum-3.3.5/packages/google/protobuf/internal/well_known_types.py:832: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableSequence.register(ListValue)
# Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5'

cd ..

python3 -m pip install --user Electrum-3.3.5.tar.gz

# ....

#   The script qr is installed in '/home/pi/.local/bin' which is not on PATH.
#   Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
#   The script qdarkstyle is installed in '/home/pi/.local/bin' which is not on PATH.
#   Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
 
#  The script chardetect is installed in '/home/pi/.local/bin' which is not on PATH.
#   Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

# Successfully installed Electrum-3.3.5 aiohttp-3.5.4 aiohttp-socks-0.2.2 aiorpcx-0.17.0 async-timeout-3.0.1 attrs-19.1.0 certifi-2019.3.9 chardet-3.0.4 dnspython-1.16.0 ecdsa-0.13.2 idna-2.8 jsonrpclib-pelix-0.4.0 multidict-4.5.2 protobuf-3.7.1 pyaes-1.6.1 qdarkstyle-2.6.8 qrcode-6.1 six-1.12.0 yarl-1.3.0
# You are using pip version 19.0.3, however version 19.1.1 is available.
# You should consider upgrading via the 'pip install --upgrade pip' command.

/home/pi/.local/bin/electrum

# /home/pi/.local/lib/python3.7/site-packages/google/protobuf/internal/well_known_types.py:788: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableMapping.register(Struct)
# /home/pi/.local/lib/python3.7/site-packages/google/protobuf/internal/well_known_types.py:832: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
#   collections.MutableSequence.register(ListValue)
# Error: Could not import PyQt5 on Linux systems, you may try 'sudo apt-get install python3-pyqt5'

sudo apt-get install python3-pyqt5

# python3-pyqt5 is already the newest version (5.7+dfsg-5).
# 0 upgraded, 0 newly installed, 0 to remove and 151 not upgraded.

sudo pip3 install PyQt5

# Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
# Collecting PyQt5
#   Could not find a version that satisfies the requirement PyQt5 (from versions: )
# No matching distribution found for PyQt5
# You are using pip version 19.0.3, however version 19.1.1 is available.
# You should consider upgrading via the 'pip install --upgrade pip' command.

pip install --upgrade pip

# Collecting pip
#   Cache entry deserialization failed, entry ignored
#   Cache entry deserialization failed, entry ignored
#   Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)
#     100% |████████████████████████████████| 1.4MB 14kB/s
# Installing collected packages: pip
# Successfully installed pip-19.1.1

sudo pip3 install PyQt5

# Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
# Collecting PyQt5
#   Could not find a version that satisfies the requirement PyQt5 (from versions: )
# No matching distribution found for PyQt5
# You are using pip version 19.0.3, however version 19.1.1 is available.
# You should consider upgrading via the 'pip install --upgrade pip' command.

reboot

sudo pip3 install PyQt5

# Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
# Collecting PyQt5
#   Could not find a version that satisfies the requirement PyQt5 (from versions: )
# No matching distribution found for PyQt5
# You are using pip version 19.0.3, however version 19.1.1 is available.
# You should consider upgrading via the 'pip install --upgrade pip' command.

pip --version

# pip 19.1.1 from /home/pi/.local/lib/python2.7/site-packages/pip (python 2.7)

pip3 --version

# pip 19.0.3 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)

pip3 install --upgrade pip

# Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
# Collecting pip
#   Using cached https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
# Installing collected packages: pip
#   Found existing installation: pip 19.0.3
#     Uninstalling pip-19.0.3:
# Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'LICENSE.txt'
# Consider using the `--user` option or check the permissions.
#
# You are using pip version 19.0.3, however version 19.1.1 is available.
# You should consider upgrading via the 'pip install --upgrade pip' command.

pip3 install --user --upgrade pip

# bash: /usr/local/bin/pip3: No such file or directory

# ghhh how to get pip3 back

sudo apt-get remove --purge libffi-dev -y

sudo apt-get install libffi-dev -y

pip3 install --user --upgrade pip

# bash: /usr/local/bin/pip3: No such file or directory

sudo apt-get install python3-pip -y

# python3-pip is already the newest version (9.0.1-2+rpt2)

sudo apt-get remove --purge python3-pip -y

sudo apt-get install python3-pip -y

# (switched console for pip3 was sought for in the wrong place)

pip3 --version

# pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

pip3 install --user --upgrade pip

# Collecting pip
#   Cache entry deserialization failed, entry ignored
#   Cache entry deserialization failed, entry ignored
#   Using cached https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl
# Installing collected packages: pip
# Successfully installed pip-19.1.1

sudo pip3 install PyQt5

# Collecting PyQt5
#   Cache entry deserialization failed, entry ignored
#   Cache entry deserialization failed, entry ignored
#   Could not find a version that satisfies the requirement PyQt5 (from versions: )
# No matching distribution found for PyQt5

# I give up.
 

Thanks in advance.
 Smiley Rik.

Jump to: