Public bug reported: When I try do import the email.mime.text module in python I get this message:
Original exception was: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/rafael/python/email.py", line 7, in <module> from email.mime.text import MIMEText ImportError: No module named mime.text I'm using gutsy with all updates and I have the python-email package installed. And now when I try to import the mail module I get this: >>> import email Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/rafael/python/email.py", line 7, in <module> from email.mime.text import MIMEText ImportError: No module named mime.text Error in sys.excepthook: Traceback (most recent call last): File "/var/lib/python-support/python2.5/apport_python_hook.py", line 38, in apport_excepthook from apport.fileutils import likely_packaged File "/var/lib/python-support/python2.5/apport/__init__.py", line 1, in <module> from apport.report import Report File "/var/lib/python-support/python2.5/apport/report.py", line 20, in <module> from problem_report import ProblemReport File "/var/lib/python-support/python2.5/problem_report.py", line 17, in <module> from email.Encoders import encode_base64 File "/home/rafael/python/email.py", line 7, in <module> from email.mime.text import MIMEText ImportError: No module named mime.text Original exception was: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/rafael/python/email.py", line 7, in <module> from email.mime.text import MIMEText ImportError: No module named mime.text >>> ** Affects: python2.5 (Ubuntu) Importance: Undecided Status: New -- error importing email.mime.text https://bugs.launchpad.net/bugs/144833 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs