It is very strange that I have some python code in the same directory:
project-root
dialog
tools
benchmark.py
populator.py
template.py
data.py
Then I can import "populator.py" and "template.py" as follows:
from dialog.tools.populator import populate
from dialog.tools.template import temp
However, it reports an error when I do:
from dialog.tools.data import compute
The imported 'populate', 'temp' and 'compute' are all functions.
The error message is:
ModuleNotFoundError: No module named 'dialog.tools.data'
As a matter of fact, this worked before. It started to produce this error message after I put several independent projecgts into one git repository. This shouldn't affect this at all. This project alone doesn't change at all.
The question, why the module is reported as not found? Exactly the same as other two in the same directory.