Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-14-2022 08:07 AM
Hi everyone,
Justin here.
I’m busy with Building Neo4j Applications with Python. I'm working in Windows. When I run the tests, I get this error: "ModuleNotFoundError: No module named 'api.neo4j'"
I've successfully installed all the modules in the requirements.txt. And I don't know what else I need to install to get this to work. I'd appreciate any help.
Thank you in advance.
Solved! Go to Solution.
03-15-2022 03:09 AM
This error happens when the current module isn't in the PYTHONPATH
environment variable. To get around this I have added PYTHONPATH=.
to the start of the command.
PYTHONPATH=. pytest tests/05_authentication__test.py
You could also run export PYTHONPATH=.
in the terminal to apply it for that session.
03-15-2022 03:09 AM
This error happens when the current module isn't in the PYTHONPATH
environment variable. To get around this I have added PYTHONPATH=.
to the start of the command.
PYTHONPATH=. pytest tests/05_authentication__test.py
You could also run export PYTHONPATH=.
in the terminal to apply it for that session.
03-15-2022 05:51 AM
Thanks Adam! This seems to work. I appreciate the help.
All the sessions of the conference are now available online