I took the first bite of Neo4j today using python, I meet the error
raise MaxRetryError(_pool, url, error or ResponseError(cause))
when I ran the code
from py2neo import Graph,Node,Relationship
##
test_graph=Graph(
"http://localhost:7474",
username="neo4j",
password="neo4j"
)
##
test_node_1 = Node(label = "Person",name = "test_node_1")
test_graph.create(test_node_1) # error pops up here
things similar happen with neo4j (the official driver). I realized that it is the connection issue and here is the solution.
launch a cmd (windows) or a terminal and initialize the port before create the connection
Note that things work differently in python 2.x and python 3.x, for python 2.x, go
python -m SimpleHTTPServer [port]
python -m http.server [port]
7474