Author

Topic: [Electrum 3.2.3] No module named 'dns'. Try 'sudo pip install <module-name>' (Read 185 times)

jr. member
Activity: 55
Merit: 4
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.
jr. member
Activity: 55
Merit: 4

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.
legendary
Activity: 1624
Merit: 2481
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
jr. member
Activity: 55
Merit: 4
I would suggest to use the --user option (pip3 install --user ).


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 '

There is no Debian package called google.protobuf

Can you help me please? Thanks.
legendary
Activity: 1624
Merit: 2481
I would suggest to use the --user option (pip3 install --user ).


What is the name of the module?

I believe it should be dnspython.
jr. member
Activity: 55
Merit: 4
Quote
sudo pip3 install

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
legendary
Activity: 1624
Merit: 2481
Use python3 to run electrum and to install packages.

So, isntead of running:
Code:
sudo pip install



You have to run either:
Code:
sudo pip3 install


to install systemwide, or:

Code:
pip3 install --user

or

Code:
python3 -m pip install --user

to install it inside your home directory.

jr. member
Activity: 55
Merit: 4
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 '

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.
Jump to: