On Feb 27, 8:11 pm, 人言落日是天涯,望极天涯不见家 <kelvin....@gmail.com> wrote: > Here is a simple example: > [app] > [module] > __init__.py --> empty > a.py --> import b > b.py --> defined a function foo() > test.py > > In the test.py, contains the below statement: > from module import a > Execute the test.py will get error: > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "module\a.py", line 1, in <module> > import b > ImportError: No module named b > > Why the b.py can not be found by a.py?
PS. This issue occurred on Python3.2 It's okay in the Python2.6 & Python2.5 -- http://mail.python.org/mailman/listinfo/python-list