Bitcoin Forum
June 21, 2024, 11:42:00 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum 3.3.4 issues on Qubes OS Fedora-29  (Read 108 times)
electrum_faq (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 19, 2019, 07:46:27 PM
 #1

Hello, I'm trying to update Electrum manually, because fedora-29 repo has an old version of Electrum. (Warning: Electrum versions older than 3.3 can no longer connect to public servers, and must be upgraded. This is in order to prevent user exposure to phishing messages. Do not download Electrum from any another source than electrum.org.)

I follow the instructions from electrum.org

I've installed all dependencies (sudo dnf install python3-pyqt5)

Then I'm trying to install electrum and use different commands, but they don't work well

There are commands below:

sudo python3 -m pip install Electrum-3.3.4.tar.gz[fast]

WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.

Requirement 'Electrum-3.3.4.tar.gz[fast]' looks like a filename, but the file does not exist

Processing ./Electrum-3.3.4.tar.gz

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/home/user/Electrum-3.3.4.tar.gz'

2. sudo python3 -m pip install https://download.electrum.org/3.3.4/Electrum-3.3.4.tar.gz#egg=electrum[fast]

WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.

Requirement already satisfied: electrum[fast] from https://download.electrum.org/3.3.4/Electrum-3.3.4.tar.gz#egg=electrum[fast] in /usr/lib/python3.7/site-packages (3.2.4)

Requirement already satisfied: pyaes>=0.1a1 in /usr/lib/python3.7/site-packages (from electrum[fast]) (1.6.0)

Requirement already satisfied: ecdsa>=0.9 in /usr/lib/python3.7/site-packages (from electrum[fast]) (0.13)

Requirement already satisfied: requests in /usr/lib/python3.7/site-packages (from electrum[fast]) (2.20.0)

Requirement already satisfied: qrcode in /usr/lib/python3.7/site-packages (from electrum[fast]) (5.1)

Requirement already satisfied: protobuf in /usr/lib/python3.7/site-packages (from electrum[fast]) (3.5.0)

Requirement already satisfied: dnspython in /usr/lib/python3.7/site-packages (from electrum[fast]) (1.15.0)

Requirement already satisfied: jsonrpclib-pelix in /usr/lib/python3.7/site-packages (from electrum[fast]) (0.3.1)

Requirement already satisfied: PySocks>=1.6.6 in /usr/lib/python3.7/site-packages (from electrum[fast]) (1.6.Cool

Collecting pycryptodomex (from electrum[fast])

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x71732a0c6cc0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pycryptodomex/

Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x71732a0aea58>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pycryptodomex/

Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x71732a0ae898>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pycryptodomex/

Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x71732a0ae3c8>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pycryptodomex/

Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x71732a0ae630>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/pycryptodomex/

Could not find a version that satisfies the requirement pycryptodomex (from electrum[fast]) (from versions: )

No matching distribution found for pycryptodomex (from electrum[fast])

3. sudo python3 -m pip install https://download.electrum.org/3.3.4/Electrum-3.3.4.tar.gz

WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.

Collecting https://download.electrum.org/3.3.4/Electrum-3.3.4.tar.gz

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7252c7df8978>: Failed to establish a new connection: [Errno -2] Name or service not known')': /3.3.4/Electrum-3.3.4.tar.gz

Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7252c7d720b8>: Failed to establish a new connection: [Errno -2] Name or service not known')': /3.3.4/Electrum-3.3.4.tar.gz

Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7252c7d72198>: Failed to establish a new connection: [Errno -2] Name or service not known')': /3.3.4/Electrum-3.3.4.tar.gz

Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7252c7d72240>: Failed to establish a new connection: [Errno -2] Name or service not known')': /3.3.4/Electrum-3.3.4.tar.gz

Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7252c7d72320>: Failed to establish a new connection: [Errno -2] Name or service not known')': /3.3.4/Electrum-3.3.4.tar.gz

Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='download.electrum.org', port=443): Max retries exceeded with url: /3.3.4/Electrum-3.3.4.tar.gz (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7252c7d72470>: Failed to establish a new connection: [Errno -2] Name or service not known'))



So I don't know what to do. Could anybody help me?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 19, 2019, 08:35:54 PM
 #2

What version of python3 are you running? Type python3 and look at what it says in the console. Apparently there's an issue when running the new version on versions before 3.7.x.

If yours is 3.6.x or lower. Try updating it first and then restart the process of updating to the newer electrum. The old electrum does still work though (I think, I haven't broadcast anything recently though).
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
March 19, 2019, 09:46:39 PM
 #3

See the instructions under linux here.
electrum_faq (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
March 20, 2019, 11:37:38 AM
 #4

Based on error message, looks like python can't download/get required dependency required by Electrum. Since Qubes OS is strict OS, i think you should make sure python3 can access internet properly.

You also can add --upgrade parameter when install electrum, i've seen few users solve similar problem by doing it

Code:
sudo python3 -m pip install Electrum-3.3.4.tar.gz#egg=electrum[fast] --upgrade

I solve this problem when I changed NetVM to Whonix (it was none). But now I face with next problem. I updated electrum at my TemplateVM and it works, but when I open electrum with my wallets at my AppVM it's still the old version. It has to update automatically. Does anybody got an answer?
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
March 20, 2019, 01:43:52 PM
 #5

the answer is in post #3 above if you care to read it.

edit: another option is to simply download the source tarball from electrum.org, untar it, cd into it and run ./run_electrum. you don't have to install. if this doesn't work then try adding the electrum directory and packages sub-directory to your pythonpath env variable first:

Code:
export PYTHONPATH="/path/to/electrum:/path/to/electrum/packages"

put this in your .bashrc and you won't have to do it every time.

The tarball approach won't work on outdated distros though because you won't have python 3.6 or pyqt compiled against python 3.6. So that's why the appimage was recommended.
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!