[issue16708] Module: shutil will not import when writen in the text editor but will in the python shell

R. David Murray report at bugs.python.org
Tue Dec 18 13:30:21 CET 2012


R. David Murray added the comment:

You have a 'copy.py' module in your python path, as is evidenced by the filename in your traceback, which tarfile is importing instead of the real copy module, and your copy.py is therefore trying to use shutil before it is completely imported, thus the error.  So this is indeed a local problem on your machine.

python-list is a mailing list where there are a lot of python users, many of whom will be willing to help you sort this out if you need more help.  Go to mail.python.org for a list of lists and signup instructions.

----------
resolution: works for me -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16708>
_______________________________________


More information about the Python-bugs-list mailing list