Bitcoin Forum
July 31, 2024, 03:28:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Electrum 3.2.3] No module named 'dns'. Try 'sudo pip install <module-name>'  (Read 168 times)
tUnes3 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 4


View Profile
September 08, 2018, 07:37:34 AM
 #1

My OS is Debian Stretch and I have downloaded Electrum-3.2.3.tar.gz

According to README.rst:

Quote
If you downloaded the official package (tar.gz), you can run
Electrum from its root directory, without installing it on your
system; all the python dependencies are included in the 'packages'
directory. To run Electrum from its root directory, just do::

    ./run_electrum

When I did that, the following message appeared:

Quote
Error: No module named 'dns'. Try 'sudo pip install <module-name>'

I installed the package python3-dns and the same error remained.

Next, I uninstalled python3-dns and installed the package python3-dnspython and had the same error. I have now unistalled python3-dnspython.

For the record, I did not have such problems when using version 3.2.2 or earlier releases. Version 3.2.3 must have introduced some new features.

Help to resolve the above issue is much appreciated.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 08, 2018, 07:58:10 AM
 #2

Use python3 to run electrum and to install packages.

So, isntead of running:
Code:
sudo pip install <module>



You have to run either:
Code:
sudo pip3 install <module>


to install systemwide, or:

Code:
pip3 install --user <module>

or

Code:
python3 -m pip install --user <module>

to install it inside your home directory.


tUnes3 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 4


View Profile
September 08, 2018, 09:38:48 AM
 #3

Quote
sudo pip3 install <module>

What is the name of the module?

I have had the following packages installed since 3.2.2 and prior releases:

python3-pyqt5

python3

python3-minimal

python3.5

pyahton3.5-minimal
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 08, 2018, 09:44:45 AM
 #4

I would suggest to use the --user option (pip3 install --user <module>).


What is the name of the module?

I believe it should be dnspython.

tUnes3 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 4


View Profile
September 08, 2018, 10:49:11 AM
 #5

I would suggest to use the --user option (pip3 install --user <module>).


What is the name of the module?

I believe it should be dnspython.

Thanks and in addition to python3-dnspython, I also installed the following Debian packages:

python3-dnspython
python3-pyaes
python3-ecdsa
python3-qrcode
python3-google-apputils

And I encountered a new error:

Quote
Error: No module named 'google.protobuf'. Try 'sudo pip install <module-name>'

There is no Debian package called google.protobuf

Can you help me please? Thanks.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 08, 2018, 10:55:01 AM
 #6

There is no Debian package called google.protobuf

Can you help me please? Thanks.


You need to install protobuf via pip.

So:
Code:
pip3 install --user protobuf

tUnes3 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 4


View Profile
September 08, 2018, 01:12:38 PM
 #7


You need to install protobuf via pip.

So:
Code:
pip3 install --user protobuf

bob123, I didn't have to install so many Debian packages when I was using Electrum 3.2.2 and prior releases.
tUnes3 (OP)
Jr. Member
*
Offline Offline

Activity: 55
Merit: 4


View Profile
September 08, 2018, 01:38:41 PM
 #8

Hi bob123,

Finally I have managed to run Electrum 3.2.3 from its folder by installing the following Debian packages:

python3-dnspython
python3-pyaes
python3-ecdsa
python3-qrcode
python3-google-apputils
python3-protobuf
python3-jsonrpclib-pelix
python3-socks

The above packages are sufficient to run Electrum 3.2.3 from its folder.

Thank goodness I have avoided installing the package python3-pip (per instruction on Electrum's download page) because it pulls many other packages, including build-essential, fakeroot, gcc++-6, gcc, etc.
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!