Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-04-2022 09:13 AM
I have enrolled on the building "Neo4j applications with Python" course on Neo4j's GraphAcademy and am stuck early in the process with Setting Environment Variables. I've installed the dependencies (FLASK etc.) but don't seem to have an .env file for the next part...
Setting Environment Variables
This project will read environment variables from the .env file located in the project root.
The project contains an example file at .env.example. You can run the following command in your terminal window to copy the example file to .env.
cp .env.example .env
But when I try to run this in the shell I get the following error:
cp: .env.example: No such file or directory
I don't seem to have a .env file in any of the newly created folders in the sandbox. Can anyone help with this?
07-05-2022 04:52 AM
07-05-2022 05:55 AM
Hej Elaine,
I believe so - I've tried in a few different directories and keep getting the same message
07-05-2022 07:28 AM
Hey @stephflint, here is the file you're after. if you skip to the next lesson it will give you new values to use in that file so you can create it from scratch there.
Let me know if you're still having problems.
07-07-2022 12:24 AM - edited 07-07-2022 01:06 AM
Hi Adam, thanks for the reply.
I restarted the project and now get this... In the .env file I'm telling flask to use a development environment but it returns this error
Error: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.
09-26-2022 07:20 AM
Dotfiles are hidden from the UI by default so that may be the issue. You could use a text editor to create a `.env` file in the root and copy and paste the values from the lesson. You'll need this file once you get to the first challenge anyway
All the sessions of the conference are now available online