ImportError: No module named 'xmlrpclib'
See original GitHub issueI installed Electrum using
$ pip3 install --user https://github.com/spesmilo/electrum/archive/2.9.3.tar.gz
…
Successfully installed Electrum-2.9.3 PySocks-1.6.7 dnspython-1.15.0 ecdsa-0.13 jsonrpclib-0.1.7
pbkdf2-1.3 protobuf-3.4.0 pyaes-1.6.0 qrcode-5.3
Now when I start electrum, I get an ImportError: No module named ‘xmlrpclib’:
$ electrum
Traceback (most recent call last):
File "/home/hartmut/.local/bin/electrum", line 71, in check_imports
import jsonrpclib
File "/…/.local/lib/python3.5/site-packages/jsonrpclib/__init__.py", line 5, in <module>
from jsonrpclib.jsonrpc import Server, MultiCall, Fault
File "/…/.local/lib/python3.5/site-packages/jsonrpclib/jsonrpc.py", line 50, in <module>
from xmlrpclib import Transport as XMLTransport
ImportError: No module named 'xmlrpclib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/…/.local/bin/electrum", line 90, in <module>
check_imports()
File "/…/.local/bin/electrum", line 73, in check_imports
sys.exit("Error: %s. Try 'sudo pip install <module-name>'"%e.message)
AttributeError: 'ImportError' object has no attribute 'message'
Python 3.5.3
Alternatively I tried with Python 2.7, but this failed to find ecdsa.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
No module name 'xmlrpclib' when using Electrum from ...
The xmlrpclib module has been renamed to xmlrpc.client in Python 3. So, if you want to use xmlrpclib import xmlrpclib.
Read more >ImportError: No module named xmlrpc.client python3 - Odoo
import xmlrpc.client ImportError: No module named xmlrpc.client.
Read more >Debian - Execute a python script with modules import
xmlrpc.client is a Python 3 library (it was xmlrpclib in Python 2), so you need to specify a Python 3 interpreter:
Read more >rznBOz - Online Python3 Interpreter & Debugging Tool
import xmlrpclib. from pprint import pprint ... sock_common = xmlrpclib. ... prog.py", line 3, in <module> ImportError: No module named xmlrpclib.
Read more >modulenotfounderror no module named 'xmlrpclib' python3-掘金
modulenotfounderror no module named 'xmlrpclib' python3技术、学习、经验文章掘金开发者社区搜索结果。掘金是一个帮助开发者成长的社区,modulenotfounderror no ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I too am having this issue. I cannot install electrum-cash because of this.
anyone have work-around?
the following fixed it for me:
jsonrpclib is for python2.