I am having a problem importing from a specific module, but not importing from modules in general. My project structure:
project-folder
aaa-folder
__init__.py
a.py
bbb-folder
__init__.py
b.py
ccc-folder
__init__.py
c.py
All the init.py files are blank. The project-folder is in my sys.path.
module b:
from aaa.a import a_method
from ccc.c import c_method
def b_method(): print 'bye'
print 'hi'
module c:
from aaa.a import a_method
from bbb.b import b_method
def c_method(): print 'bye'
print 'hi'
module a:
from bbb.b import b_method
from ccc.c import c_method
def a_method(): print 'bye'
print 'hi'
I can import every method from the python shell. Module b and c both run from the command line and simply return 'hi'. When I run module a, I get ImportError: No module named b
Where might I find clues to my problem?