R. David Murray added the comment: There is no file 'email.py' in the Python standard library. You must have such a file in your python path somewhere, so when you import email it actually imports that file instead of the email package. You will note that 'email.py' in the traceback does not have a path, so it is probably in the directory you are running python from.
---------- resolution: -> not a bug stage: -> committed/rejected status: open -> closed type: compile error -> behavior _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21290> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com