This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fgyuri
Recipients fgyuri, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-07-27.16:17:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Big magic in python 2.7.15 win version:

Create file: "" containing 2 code lines:

import xmlrpclib

proxy = xmlrpclib.ServerProxy("http://localhost:8000/")

run it, and it gives u a nice error:
Traceback (most recent call last):
  File "", line 1, in <module>
    import xmlrpclib
  File "C:\Python27\lib\", line 538, in <module>
    from xml.parsers import expat
  File "C:\work\mitre\", line 3, in <module>
    proxy = xmlrpclib.ServerProxy("http://localhost:8000/")
AttributeError: 'module' object has no attribute 'ServerProxy'

U also get this error, when this file present in the directory where u want to import xmlrpclib in another py. ANd if only the compiled xml.pyc exist, the bug comes.  But if you rename it to, it works!

Maybe a bad import from wrong directory in xmlrpclib. Not tested on another version or platform.
Date User Action Args
2018-07-27 16:17:54fgyurisetrecipients: + fgyuri, paul.moore, tim.golden, zach.ware, steve.dower
2018-07-27 16:17:54fgyurisetmessageid: <>
2018-07-27 16:17:54fgyurilinkissue34250 messages
2018-07-27 16:17:54fgyuricreate