Questions tagged [py2neo]

Py2neo provides Python bindings for the Neo4j graph database via its REST web service interface.

Py2neo provides Python bindings for the Neo4j graph database via its REST web service interface. With more detailed information available from py2neo.org, the source code can be found on GitHub and an installable package from the Python Package Index.

The library provides both in-depth support for the Cypher query language as well as the Geoff graph data notation.

729 questions
1
vote
1 answer

py2neo: AttributeError: 'function' object has no attribute 'begin'

I am using py2neo version 3 and getting the following error: > GET http://localhost:7474/db/data/ < 200 OK [795] Traceback (most recent call last): File "run_snomed_upload.py", line 63, in sp = SnomedConceptProcessor() File…
brucezepplin
  • 9,202
  • 26
  • 76
  • 129
1
vote
0 answers

py2neo, neo4j defining node names from returning path object

I am querying a social network with nodes as Persons (with properties ID and Name) and relationships. When I receive a Path object back it includes the (internal node id)-[Relationship]-(internal node id). For example code 'path': (abc123)-[:KNOW…
skibee
  • 1,279
  • 1
  • 17
  • 37
1
vote
0 answers

neoauth is not installed with pip install of py2neo

Pip installing py2neo doesn't appear to install neoauth. $ pip install py2neo Requirement already satisfied: py2neo in ./venv/lib/python2.7/site-packages $ neoauth -bash: neoauth: command not found Why is neoauth not installed? Is it installed but…
Owen Brown
  • 179
  • 9
1
vote
0 answers

Py2neo, add property in relationship

I would like to add new property in my relationship. I try something like for node: rel = graph.relationship(id) p = rel.properties p['d'] = 'aaa' rel.push() But nothing is updated. I'm using py2neo v3.1.2
MAYA
  • 1,243
  • 1
  • 12
  • 20
1
vote
0 answers

neo4j failing to reload - possible causes for failed store_lock permissions

Until yesterday a site using neo4j + flask + nginx was working ok. This morning I found error 500. From the logs, it seems that the culprit is neo4j: tail -100 /var/log/neo4j/neo4j.log Caused by: org.neo4j.kernel.StoreLockException: Unable to obtain…
user305883
  • 1,635
  • 2
  • 24
  • 48
1
vote
1 answer

py2neo Graph.find_one() deprecation warning?

I have py2neo version 3.1.2 installed on python 3.5 and when I run the following code, I receive a deprecation warning about Graph.find_one and am told to use NodeSelector instead. v3 Documentation doesn't mention this depreciation. When I go to use…
Matt Camp
  • 1,448
  • 3
  • 17
  • 38
1
vote
2 answers

how a flask-python script calls another flask-python script

I'm new in flask-py2neo-pyhon-neo4j so I need some help I have the following issue. My main .py that runs/executes is views.py I have another py script where I have the submission of some form_data.html>to be more clear views.py…
Antwnina
  • 117
  • 12
1
vote
3 answers

Get number of records from a match query with py2neo

Is there an easy way to get the number of records return from a match query using py2neo? records = g.db.run("MATCH (n:Project) where n.id={id} and ({user} in n.users) return n", id=project_id, user=user_name) num_records_returned = # how do I do…
Charlotte
  • 1,253
  • 1
  • 16
  • 21
1
vote
0 answers

Neo4j Error with updating nodes

Edit: Found an ugly bandaid fix for now, but still need help solving the bug. Details at the end of the question. I'm currently developing a db/site between neo4j and flask, using py2neo. I'm in the middle of developing a notification system, where…
Shields
  • 76
  • 7
1
vote
1 answer

Neo4j Py2neo not updating node properties

Writing python program to fetch existing Neo4j node and update properties using py2neov3 package. Movie node has title & year properties. Have a python dictionary with list of movies to be added. I have tried below options, movie node is getting…
1
vote
1 answer

Implementing Flask-login with neo4j

I'm trying to implement Flask-login with neo4j. Trying to implement using this Flask Login Documentation. I have added the four method to the user class class User: def __init__(self, username): self.username = username def…
jas
  • 1,539
  • 5
  • 17
  • 30
1
vote
0 answers

Neo4j py2neo transaction commit duplicates node somewhere in loop

I'm working with py2neo 3.1.2, and trying to create several nodes within a loop, and connect them all to a single node. I've got a simplified version of the code, which still demonstrates the issue: from py2neo import Graph, Node, Relationship graph…
Jeremy G.
  • 81
  • 2
  • 8
1
vote
0 answers

How to pass a parameters to cypher query Create Statement using Py2neo?

For example: cquery = """CREATE (u:User { Name: {username})""" data = graph.run(cquery, username=username) Something like that but the query above I am getting cyphersynthax error could anyone help me?
MUHAMMAD
  • 61
  • 6
1
vote
0 answers

Importing large XML file into neo4j using py2neo

I have a very large XML file (2Gb) and I am trying to upload it to neo4j with Python. I am creating a dictionary mydata = etree.parse("myfile.xml") data = mydata.getroot() data_list = {} temp_elt = {} #will hold each element j=0 for pub in data: …
C. Co
  • 21
  • 4
1
vote
1 answer

Py2neo V3 - Multiple Relationship from the same nodes

I'm trying to create multiple relationship from the same nodes, in my case, my user needs to be able to comment more than one time in my Post. I did that by creating an relationship between User and Post. But when I try to create it, it actually…
Felipe Santiago
  • 414
  • 6
  • 16