Issue
I'm in a virtualenv and trying to run a script I get the following:
Traceback (most recent call last):
File "blah.py", line 15, in <module>
from xmlrpc import server
ImportError: No module named xmlrpc
Ok so that seems that I need xmlrpc, which I'm assuming means I need xmlrpclib
So I try that:
(env) ❯❯❯ pip2.7 install xmlrpclib
Collecting xmlrpclib
Could not find a version that satisfies the requirement xmlrpclib (from versions: )
Some externally hosted files were ignored as access to them may be unreliable (use --allow-external xmlrpclib to allow).
No matching distribution found for xmlrpclib
Ok, so then I'll try the --allow-external to get it working:
(env) ❯❯❯ pip2.7 install --allow-external xmlrpclib ⏎ ◼
You must give at least one requirement to install (see "pip help install")
Not sure why xmlrpclib isn't seen to be a valid argument?
Solution
The answer is that the module xmlrpc
is part of python3, not python2.x
details: https://docs.python.org/3/library/xmlrpc.server.html
Should already be installed, just go ahead and use it.
Answered By - edumike Answer Checked By - Mildred Charles (WPSolving Admin)