Closed MDGrey33 closed 8 months ago
I executed this command to be able to execute the module from the terminal without pycharm export PYTHONPATH="/Users/roland/code/NurB/Nur:$PYTHONPATH" This is more of a workaround I hope to find a solution for it once and for all.
Use case while executing
poetry run python3.12 ./api/endpoint.py
you get the error belowpoetry run python3.12 api/endpoint.py Traceback (most recent call last): File "/Users/roland/code/NurB/Nur/api/endpoint.py", line 7, in
from credentials import oai_api_key
ModuleNotFoundError: No module named 'credentials'
ls -al /Users/roland/code/NurB/Nur/ | credentials
zsh: command not found: credentials
ls -al /Users/roland/code/NurB/Nur/ | grep credentials
-rw-r--r-- 1 roland staff 1763 16 Feb 09:42 credentials.py
-rw-r--r-- 1 roland staff 357 17 Feb 22:27 credentials_example.py