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
2 answers

Adding a python list parameter in a neo4j query

I'm about to run a query in neo4j with a parameter, but it always returns me an error. > query= ("MATCH (p1:Item),(p2:Item) where p1.value=$name > RETURN p1.value AS from, p2.value AS to, >…
1
vote
0 answers

py2neo (Neo4j) bulk operation

I have created a nice graph using Neo4j Desktop, using a local CSV file that I added to the project. now I'm trying to use python to do that automatically for that I'm trying to use methods from here https://py2neo.org/2021.1/bulk/index.html like…
1
vote
1 answer

simple example of working with neo4j python driver?

Is there a simple example of working with the neo4j python driver? How do I just pass cypher query to the driver to run and return a cursor? If I'm reading for example this it seems the demo has a class wrapper, with a private member func I pass to…
dcsan
  • 11,333
  • 15
  • 77
  • 118
1
vote
0 answers

What is IndexError returned by Py2neo?

When I run a cypher query using Py2neo, I got the following error message. I don't really understand what it means. I am guessing that a connection to the database is closed or broken for some reasons. Could you help me understand this message? To…
1
vote
1 answer

How to return the node ID in py2neo (Neo4J & Python)

Currently working with Py2neo to access my Neo4J database. I have trouble with returning a node id. I already went through the documentation of Py2neo and read multiple StackOverflow posts but none of them contains a solid answer to my question. I…
T. de Jong
  • 91
  • 1
  • 1
  • 6
1
vote
1 answer

After upgrading py2neo version code is giving errors

Currently production in use versions. NEO4J==3.2.2 python3.8 py2neo==3.1.2 Now upgrading towards newer version py2neo==4.2.0 I am facing errors. with py2neo==3.1.2 this code was working fine selector = NodeSelector(graph) student_node =…
1
vote
2 answers

Database creation takes to long in neo4j

Updated question: I'm new in neo4j and im trying to create a movie rating database. I have a file with 100.000 registers (2,3 MB) that represents when a user rated a movie; the file look like this (this dataset is from MovieLens): dataset file I'm…
suribe06
  • 69
  • 8
1
vote
1 answer

Is there a way to store dynamic Cypher query into python variable?

Is there a way to put my cypher query into a python variable? I am able to put the non-parameter of the cypher into a variable but getting the error [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/mfRrp.png on trying to put…
RB17
  • 356
  • 1
  • 8
  • 26
1
vote
2 answers

Py2neo slow to request all relationships

I would like to list all relations inside my graph of around 20000 edges, with the cypher query MATCH ()-[r]-() RETURN r. For each relation I would like to get the relation type, its properties, the source node ID, the target node ID. When I run…
Alexis Pister
  • 449
  • 3
  • 13
1
vote
0 answers

NEO4J MATCH query returns incorrect output

I have a simple query to search for a relationship based on a property uuid: MATCH ()-[r]->() where r.uuid = '**ab7544ce-9d85-4033-867a-b9d80c6c7b07**' return r [{'r': (1917411)-[:Gets_Over_By {finish_date: '2020-04-02', percent_alloc: 1.0,…
Kshitij
  • 23
  • 5
1
vote
1 answer

ValueError: ('Transaction %r is not open on this connection', )

I am developing a webapp using the library py2neo. I also pushed it on Heroku, where it is connected with a Graphene DB, while locally it is connected with a Neo4j database. As I was using my webapp on Heroku, I got this error: ValueError:…
Tms91
  • 3,456
  • 6
  • 40
  • 74
1
vote
2 answers

Bulk Insertion in Py2neo

Im writing a custom doc manager for mongo-connector to replicate mongodb documents to neo4j. Here I would like to create bulk relationships. Im using py2neo2020.0. It seems there are some options in previous versions but not in this version. Is…
Selvakumar Ponnusamy
  • 5,363
  • 7
  • 40
  • 78
1
vote
1 answer

py2neo.database.work.ClientError: [Security.Unauthorized] The client is unauthorized due to authentication failure

I am following a tutorial about py2neo, I am moving the first steps. I want to connect to a graph I created by using the command graph = Graph() Here is what I did from the very beginning: I open Neo4j Desktop (v. 1.3.11), create a new project, and…
Tms91
  • 3,456
  • 6
  • 40
  • 74
1
vote
1 answer

Connect to Neo4j Aura cloud database with py2neo

I am attempting to connect to an instance of an Aura cloud database using py2neo. I get a variety of errors as I try different parameters, and cannot figure out how to connect. I'm storing my credentials in a json file, and have confirmed all…
Erik
  • 41
  • 4
1
vote
0 answers

Question about Neo4j + Flask log in Project

I am taking Nicole White's tutorials about Neo4i + Flask to make a blog page project. I run into this issue. I am using Python 3.7 and Py2neo v4 version. I am not sure about the User part. It gives me an error. It said 'User' object is not…
Xiang Liu
  • 51
  • 2