Author

Topic: Electrum 3.3.4 on Ubuntu16.04 LTS (i386) crashes (Read 249 times)

legendary
Activity: 2030
Merit: 1573
CLEAN non GPL infringing code made in Rust lang
February 21, 2019, 01:56:30 PM
#10
Install Python 3.6 from a PPA repository as required by newest Electrum app
Get source code
python3.6 Electrum-3.3.4/run_electrum

crashes
module not found error - 'PyQt5.QtGui'

python3.6.7-1~16.4.york from PPA
launchpad.net/~jonathonf

Anyone have any ideas?

Sounds like your problem lies with PyQT (not python).

Install it via pip3 (not pip or apt):

sudo pip3 install pyqt5

Then try again running the installer.
There is also Qt.py, QtPy and Qt5.py but i don't think you need those.

Also see if by chance, you got pyqt from system packages or that PPA, i would remove it if found (ie. sudo apt remove python-qtpy).


If you're not able to use the appimage and you're not willing to update your OS then your only option is to use electrum 3.2.4. Just don't follow any links in error messages.

Best to update the OS. pyqt5 is probably compiled against the python version that came with the OS and that's why it won't work with python 3.6 that you installed from the 3rd party repo.

Be mindful that some distros are dropping 32bit support, if the target machine is say, a p4, it would be advised to plan moving to a distro that keeps 32bit support. LTS at least gives him until 2021 while non LTS with 32bit support is already dropped (ie 18.04), so be mindful before suggesting a "distro upgrade" here because it probably needs planning and backing up data for migration.

As for using older Electrum, there is little to worry. If you get the phishing message, your transaction won't commit. Just change the server and try again. The good servers show a different nag (unclickable link pointing to electrum.org) but nothing to worry about it, and the transaction does broadcast. (right click and "view on block explorer" to confirm).

btw: 16.04 provides python-qt4, I'm not sure if that's in the way, but could try sudo apt remove python-qt4 and hope no important dependencies complain.
legendary
Activity: 3710
Merit: 1586
If you're not able to use the appimage and you're not willing to update your OS then your only option is to use electrum 3.2.4. Just don't follow any links in error messages.

Best to update the OS. pyqt5 is probably compiled against the python version that came with the OS and that's why it won't work with python 3.6 that you installed from the 3rd party repo.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
@tortillaface,
Please don't multi-post.  It's rude to those who watch this board, and it's against the rules.  When you have something to add, and no one has replied since your last post you should just edit that last post.
newbie
Activity: 4
Merit: 0
https://github.com/spesmilo/electrum/issues/4942
"try python3.6 -m pip install pyqt5"

no matching distribution found for pyqt5
You are using pip v 8.1.1, version 19.0.2 available, try upgrading
pip install  --upgrade pip
shows pip 19.0.2 is in /home/user/.local/lib/python2.7/site-packages

IE it references Pip for Python2.7

""I was facing the same issue on 16.10, upgrade to 17.04 didn't help. I'm pretty sure the problem started because of python3 packages conflict, looking at the trace of the exception it seemed like it was using packages from /usr/lib/python3 (apt managed) and from /usr/local/lib/python3.5 (pip managed). I removed all my pip installed packages, I reinstalled update-manager/python3-aptdaemon/etc but that didn't work... After some additional attempts at removing and purging everything and then reinstalling, it seems that update-manager is working when using synaptic backend and not aptdaemon. So far so good. "
newbie
Activity: 4
Merit: 0
python3.6 run_electrum
Traceback
line 339
leads to
/electrum/daemon.py line 337 and line 338 errors

module 
from PyQt5.QtGui import QGuiApplication
ModuleNotFoundError: No module named 'PyQt5.QtGui'
newbie
Activity: 4
Merit: 0
 Abdussamad: Thanks, but i dont think a 64bit AppImage will work on i386 platform
Will look at your script anyway, thanks

DireWolfM14: Cant really uninstall Python 3.5 without breaking a whole load of other stuff

v.Electrum-3.3.4
pip: installed qtpy  in /usr/local/lib/python3.5/dist-packages (1.6.0)
synaptic: python-pyqt5 5.5.1+dfsg-3

Python and python 3 commands invoke
error in line 53  sys.exit(f"Error: {str(e)}.
Try sudo python3 -m pip install [module name]
OK 
"sudo python3 -m pip install pyqt5"
No matching distribution found for pyqt5

Thoughts: Python v3.6 -minimal vs Python 3.5, something is missing or not installed for Python 3.6


legendary
Activity: 3710
Merit: 1586
Use the app image. Here's a script for downloading it.
jr. member
Activity: 31
Merit: 109
Why still on Linux 16.04?
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
I'm no Ubuntu expert, and I get frustrated as hell when I run into shit like this.  I've found the easiest way to fix those issues is to install Windows.  Tongue

All kidding aside; you can try a purge of Electrum and the python dependencies, and try to reinstall again.  Sometimes that will button things up.
newbie
Activity: 4
Merit: 0
Install Python 3.6 from a PPA repository as required by newest Electrum app
Get source code
python3.6 Electrum-3.3.4/run_electrum

crashes
module not found error - 'PyQt5.QtGui'

python3.6.7-1~16.4.york from PPA
launchpad.net/~jonathonf

Anyone have any ideas?

Jump to: