MDGrey33 / Nur

The self actualizing documentation framework that heals its knowledge gaps as naturally as a ray of light. Check http://NurMind.com for updates and the discord invite to engage with us.
Apache License 2.0
17 stars 3 forks source link

executing the api service enpoint.py from terminal gives an import error #6

Closed MDGrey33 closed 8 months ago

MDGrey33 commented 8 months ago

Use case while executing poetry run python3.12 ./api/endpoint.py you get the error below

poetry 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

MDGrey33 commented 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.