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 ktenney
Recipients ktenney
Date 2008-08-20.14:00:32
SpamBayes Score 0.0360992
Marked as misclassified No
Message-id <1219240834.62.0.382152843898.issue3619@psf.upfronthosting.co.za>
In-reply-to
Content
from foo import bar
ImportError: cannot import name bar

The error may be due to the wrong 'foo' being found, some investigation
is required.

If the the ImportError message included the filename for 'foo', the
problem would be obvious.
ImportError cannot import name bar from  /usr/lib/<snip>/foo.pyc

A c.l.p. thread on this is at
http://groups.google.com/group/comp.lang.python/browse_thread/thread/88474a32877026fc/

a patch from Wojtek Walczak is here and attached
http://www.stud.umk.pl/~wojtekwa/patches/from-import-py2.5.1.patch

a thread about it on python-dev is here
http://mail.python.org/pipermail/python-dev/2008-August/081889.html

including a comment on the patch
http://mail.python.org/pipermail/python-dev/2008-August/081897.html
History
Date User Action Args
2008-08-20 14:00:35ktenneysetrecipients: + ktenney
2008-08-20 14:00:34ktenneysetmessageid: <1219240834.62.0.382152843898.issue3619@psf.upfronthosting.co.za>
2008-08-20 14:00:33ktenneylinkissue3619 messages
2008-08-20 14:00:33ktenneycreate