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 | dangyogi |
|---|---|
| Recipients | dangyogi |
| Date | 2008年03月18日.21:27:55 |
| SpamBayes Score | 0.21791859 |
| Marked as misclassified | No |
| Message-id | <1205875676.38.0.76467063797.issue2410@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Try this to reproduce error: $ mkdir -p test/email $ cd test $ touch __init__.py email/__init__.py $ cat <<! > foo.py from __future__ import absolute_import import smtplib ! $ python >>> import foo ... File "/usr/lib/python2.6/smtplib.py", line 46, in <module> import email.utils ImportError: No module named utils If you rename the email subdirectory, it will find email.utils where it should find it. Strangely, this doesn't happen if you have an 'os' subdirectory and try to import shlex, which does: import os.path ?? |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年03月18日 21:27:56 | dangyogi | set | spambayes_score: 0.217919 -> 0.21791859 recipients: + dangyogi |
| 2008年03月18日 21:27:56 | dangyogi | set | spambayes_score: 0.217919 -> 0.217919 messageid: <1205875676.38.0.76467063797.issue2410@psf.upfronthosting.co.za> |
| 2008年03月18日 21:27:55 | dangyogi | link | issue2410 messages |
| 2008年03月18日 21:27:55 | dangyogi | create | |