Ansys Free Student Software

Ansys Free Student Software

Topics cover installation and configuration of our free student products

Python and neo4j ANSYS

    • KonohaHokage
      Subscriber
      I am a new learner to python and to neo4j and I want to do the connection with Python. I am using neo4j version 3.0.3.I have written the code in Python file referring a tutorial from python programming tutorial, I have also changed the password, since my password is root:from neo4j.v1 import GraphDatabase, basic_authdriver = GraphDatabase.driver('bolt: //localhost, auth=basic_auth(user = neo4j, password = root))session = driver.session()session.run('CREATE (a:Person {name:'Bob'})')result = session.run('MATCH(a: Person) RETURN a.name AS name')for record in result: print(record['name'])session.close()But on running it, I am getting the following errors:nnTraceback (most recent call last): File 'D: /Work/MySQL_neo4j_Importer / dumping_ingredients.py', line 3, in session = driver.session() File 'C: /Python27/lib/ site - packages/ neo4j/ v1/session.py', line 148, in session session = Session(self) File 'C: /Python27/lib/ site - packages/ neo4j/ v/ session.py', line 461, in __init__ self.connection = connect(driver.host, driver.port, driver.ssl_context, **driver.config) File 'C: /Python27/ lib/ site - packages/ neo4j/v1/ connection.py', line 403, in connect s = create_connection((host, port)) File 'C: /Python27/lib/ socket.py', line 557, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM):socket.gaierror: [Errno 11004] getaddrinfo failed
    • KR
      Administrator
      Hello,Which Ansys Product are you using? Karthik
Viewing 1 reply thread
  • The topic ‘Python and neo4j ANSYS’ is closed to new replies.