neo4j - python driver, Service unavailable neo4j - python driver, Service unavailable python-3.x python-3.x

neo4j - python driver, Service unavailable


I had the same issue, it seems to be that localhost resolves by default to ipv6, which that driver version cannot handle yet.

So I just changed localhost to: 127.0.0.1 and it worked.


When trying to run on local, use encrypted=False as one of the parameter for GraphDatabase.driver

driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "myPass"), encrypted=False)


Below worked for me,

Note the neo4j://, the port 7687 and the auth parameter

from neo4j import GraphDatabaseuri = "neo4j://localhost:7687"driver = GraphDatabase.driver(uri, auth=("neo4j", "mypass"))

And my desktop looks like this,

enter image description here