Hi,
I'm going through the Building Neo4j Applications with Python course on GraphAcademy and am encountering a problem when trying to connect and verify the driver instance:
# Create a new Driver instance
driver = GraphDatabase.driver("neo4j://localhost:7687",
auth=("neo4j", "runaway-trades-presence"))
When I then try the command to verify the connection details like so:
# Verify the connection details
driver.verify_connectivity()
It returns the following error:
/var/folders/d7/q_fznsr95_97r6lp_mx_vp640000gn/T/ipykernel_98786/954338410.py:2: ExperimentalWarning: The configuration may change in the future.
driver.verify_connectivity()
...
ServiceUnavailable: Could not connect to any routing servers.
The .env file has been updated with the correct credentials - any ideas why this is happening?
I'm also not able to print or view any of the following in Python - neo4j_uri, neo4j_username etc.
neo4j_uri = os.getenv('NEO4J_URI')
neo4j_username = os.getenv('NEO4J_USERNAME')
neo4j_password = os.getenv('NEO4J_PASSWORD')