Givin this module structure:
mypackage
|-- __init__.py
`-- subpackage
|-- __init__.py
|-- foo.py
`-- bar.py
File foo.py does a relative "from ... import":
from bar import xxx
causing pychecker 0.8.12 to fail as follows:
Processing mypackage.subpackage.foo
ImportError: No module named bar
Logged In: YES
user_id=1168720
I have tested this with Python 2.1, 2.2, 2.3 and 2.4. I was
able to reproduce the problem.
Note that this problem does *not* occur when executing:
pychecker mypackage/subpackage/foo.py
It only happens when executing:
pychecker mypackage.subpackage.foo