I have seen here, here and here but still not sure how to fix it.
I am doing my dev work on my Mac using PyCharm and everything works and imports.
When I take this project directory to FreeBSD jail. It fails to load internal directory code. and gives the following error:
Traceback (most recent call last):
File "project/src/my_script.py", line 3, in <module>
from src.auth import MyClient
ModuleNotFoundError: No module named 'src'
I am trying to execute the file my_script.py which imports src.auth.py
My Directory structure looks like this:
project
/src
__init__.py
my_script.py
auth.py
__init__.py
.env
both __init.py__ are empty files. Any help would be appreciated.
thanks