Winerror 10061 when coding with python (on pycharm) to create a graph

(Angel Vergara) #1

I installed the py2neo (pip install py2neo) and the neo4j driver for python (pip install neo4j-driver)
Then I wrote this simple code on pycharm:

from py2neo import Graph
form py2neo import Node

graph=Graph()
a=Node("Person", name="angel")
graph.create(a)

I received the error: [WinError 10061] No connection could be made because the target machine actively refused it

How can I fix this??
Thanks in advance!!

0 Likes

(Michael Hunger) #2

Do you have a graphdb running?

You should provide an URL and user + password to Graph()

0 Likes