folder0
| __init__.py
| folder1
| | __init__.py
| | folder2
| | | __init__.py
| | | script.py
| folder3
| | __init__.py
| | module.py
How to import module.py
in script.py
? I tried having from ...folder3 import module
in script.py
and running python script.py
in folder2
gives me ImportError: attempted relative import with no known parent package
. I am using Python 3.7. I have spent many hours reading many posts on the topic and it is still not working. Please help.