I have a set of Python scripts that interact. I call my "main" script from the parent directory (parent/main.py), which imports function from a script foo in a subdirectory (parent/child/foo.py), which in turn imports functions from another program bar (parent/child/bar.py). I'm getting a ModuleNotFoundError for bar.py when I try to run main.py.
I read into namespace modules and as best I can tell, I'm not doing anything wrong as apparently "from child.foo import myfunc" should be fine?
Stack trace, per request:
Traceback (most recent call last):
File ".\main.py", line 2, in <module>
import child.foo
File "C:\biglongpath\parent\child\run_n1.py", line 1, in <module>
from bar import myfunc as mf
ModuleNotFoundError: No module named 'bar'