Importing some files from the sibling folder works fine but for some files especially it fails with no module found errors.
I have tried cleaning up the directories with py.cleanup -p
to no success
Here is my folder structure:
plugin_template
scripts
__init__.py
client_simulator.py
main.py
tests
__init__.py
plugin_flow.py
plugin_template
twitter_importer
__init__.py
data
__init__.py
schema.py
plugin_flow
__init__.py
plugin_flow.py
importer_handler.py
importer.py
I get the error while in scripts/client_simulator.py
when I import like this
from twitter_importer.plugin_flow.plugin_flow import PluginFlow
I don't get any linter errors while importing but running the script raises
Traceback (most recent call last):
File "scripts/client-simulator.py", line 1, in <module>
from twitter_importer.plugin_flow.plugin_flow import PluginFlow
ModuleNotFoundError: No module named 'twitter_importer.plugin_flow'
Yet when I import schema like this it works fine
from twitter_importer.data.schema import Account
I am unable to trace what I am missing.