benjaminp / six

Python 2 and 3 compatibility library
https://six.readthedocs.io/
MIT License
983 stars 274 forks source link

ImportError: No module named xmlrpc_server #160

Open benjaminp opened 8 years ago

benjaminp commented 8 years ago

Originally reported by: parahelox (Bitbucket: parahelox, GitHub: parahelox)


ubuntu 14.04 x64 python 2.7 six 1.10.0

I install six by pip.

xmlrpc_server not exists

>>> from six.moves.xmlrpc_server import SimpleXMLRPCDispatcher
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named xmlrpc_server
>>> import six.moves
>>> dir(six.moves)
['BaseHTTPServer', 'CGIHTTPServer', 'SimpleHTTPServer', 'StringIO', 'UserString', '__doc__', '__name__', '_thread', 'builtins', 'cPickle', 'cStringIO', 'configparser', 'copyreg', 'dbm_gnu', 'email_mime_base', 'email_mime_multipart', 'email_mime_text', 'filter', 'filterfalse', 'html_entities', 'html_parser', 'http_client', 'http_cookiejar', 'http_cookies', 'input', 'map', 'queue', 'range', 'reduce', 'reload_module', 'reprlib', 'socketserver', 'tkinter', 'tkinter_colorchooser', 'tkinter_commondialog', 'tkinter_constants', 'tkinter_dialog', 'tkinter_dnd', 'tkinter_filedialog', 'tkinter_font', 'tkinter_messagebox', 'tkinter_scrolledtext', 'tkinter_simpledialog', 'tkinter_tix', 'tkinter_tkfiledialog', 'tkinter_tksimpledialog', 'tkinter_ttk', 'urllib', 'urllib_error', 'urllib_parse', 'urllib_robotparser', 'winreg', 'xmlrpc_client', 'xrange', 'zip', 'zip_longest']

As you see, there is no xmlrpc_server in dir(six.moves).

I tried install from source , still failed.


benjaminp commented 8 years ago

Original comment by parahelox (Bitbucket: parahelox, GitHub: parahelox):


As pip uninstall and reinstall sis not work, I search and remove all file which likely related to six. Then pip install six can find xmlrpc_server, don't know why.