neo4j-graphacademy / app-python

https://graphacademy.neo4j.com/courses/app-python
56 stars 92 forks source link

Could not connect to any routing servers! #5

Closed lifeiteng closed 2 years ago

lifeiteng commented 2 years ago

code

from neo4j import GraphDatabase

# Press the green button in the gutter to run the script.
if __name__ == '__main__':
  driver = GraphDatabase.driver("neo4j://localhost:7687", auth=("neo4j", "neo"))
  driver.verify_connectivity()

error

opt/anaconda3/lib/python3.6/site-packages/neo4j/__init__.py", line 461, in _verify_routing_connectivity
    raise ServiceUnavailable("Could not connect to any routing servers.")
neo4j.exceptions.ServiceUnavailable: Could not connect to any routing servers.
adam-cowley commented 2 years ago

Is the server definitely running on localhost:7687? Can you open the browser and connect using http://localhost:7474?

lifeiteng commented 2 years ago

after google, I installed https://neo4j.com/download-center/#desktop and reset user and passwd, then passed.

Why the course is not self consistent?

adam-cowley commented 2 years ago

Sorry, I'm not sure what you mean by self consistent?