python - Python3 can not find module xmlrpc from unittests -
i working on python project 2 other people, can't run our tests. when run tests using python3 -m unittest
output
traceback (most recent call last): traceback (most recent call last): file "peer.py", line 1, in <module> file "peer.py", line 1, in <module> xmlrpc.client import serverproxy xmlrpc.client import serverproxy importerror: no module named xmlrpc.client importerror: no module named xmlrpc.client
line 1 in peer.py is
from xmlrpc.client import serverproxy
the strange thing when run peer.py independently (python3 peer.py
) there no problems. , works charm in shell
python 3.3.1 (v3.3.1:d9893d13c628, apr 6 2013, 11:07:11) [gcc 4.2.1 (apple inc. build 5666) (dot 3)] on darwin type "help", "copyright", "credits" or "license" more information. >>> import xmlrpc.client >>>
the 2 people work don't have problems, , running same code version control. same error on both os x , ubuntu, whereas run windows.
Comments
Post a Comment