Bitcoin Forum
November 07, 2024, 02:16:13 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum 3.3.4 on Ubuntu16.04 LTS (i386) crashes  (Read 244 times)
tortillaface (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 18, 2019, 01:06:13 PM
 #1

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?

DireWolfM14
Copper Member
Legendary
*
Online Online

Activity: 2338
Merit: 4541


Join the world-leading crypto sportsbook NOW!


View Profile WWW
February 18, 2019, 03:39:14 PM
Merited by bones261 (1)
 #2

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.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
GiGa#
Jr. Member
*
Offline Offline

Activity: 31
Merit: 109


View Profile
February 19, 2019, 07:34:59 AM
 #3

Why still on Linux 16.04?
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
February 19, 2019, 03:42:12 PM
 #4

Use the app image. Here's a script for downloading it.
tortillaface (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 19, 2019, 09:35:54 PM
 #5

 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


tortillaface (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 19, 2019, 09:48:26 PM
 #6

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'
tortillaface (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 19, 2019, 10:02:39 PM
 #7

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. "
DireWolfM14
Copper Member
Legendary
*
Online Online

Activity: 2338
Merit: 4541


Join the world-leading crypto sportsbook NOW!


View Profile WWW
February 19, 2019, 10:11:36 PM
 #8

@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.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
Abdussamad
Legendary
*
Offline Offline

Activity: 3682
Merit: 1580



View Profile
February 20, 2019, 07:47:15 PM
 #9

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.
Artemis3
Legendary
*
Offline Offline

Activity: 2030
Merit: 1573


CLEAN non GPL infringing code made in Rust lang


View Profile WWW
February 21, 2019, 06:56:30 PM
Last edit: February 21, 2019, 07:13:33 PM by Artemis3
Merited by bones261 (2)
 #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.

██████
███████
███████
████████
BRAIINS OS+|AUTOTUNING
MINING FIRMWARE
|
Increase hashrate on your Bitcoin ASICs,
improve efficiency as much as 25%, and
get 0% pool fees on Braiins Pool
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!