I'm trying to build a package that has the following structure,
- __init__.py
- a.py
- subpackage
- __init__.py
- b.py
a.py file contains a class from b.py, let say "classX". So, a.py has the following line at the beginning of file,
from subpackage.b import classX
The problem is that, when I try to use this entire package from outside, I get the error "no module named 'b'".
How can I fix this problem?