Py2Neo - AttributeError: 'Graph' object has no attribute 'find_one'

507 views
Skip to first unread message

Lukas Ott

unread,
Sep 1, 2018, 8:26:47 PM9/1/18
to Neo4j
I tried to rebuild https://nicolewhite.github.io/neo4j-flask/pages/register-a-user.html in Python 3 and Py2Neo V4 (current one).

Flask is running and Neo4J is running on Ubuntu 18.04.


When I want to register a new User I'll get " AttributeError: 'Graph' object has no attribute 'find_one' "

In the documentation by Nicole White:
 -> The User.find() method uses py2neo’s Graph.find_one() method to find a node in the database with label :User and the given username, returning a py2neo.Node object. 

So my question is with what function the find_one() method has been replaced in the current Py2Neo V4 Version? 

In the docuementation https://py2neo.org/v4/database.html I found: 

match_one(nodes=None, r_type=None)[source]

Match and return one relationship with specific criteria.


Anyone has an idea on how to update?

requirements.txt

Michael Hunger

unread,
Sep 1, 2018, 8:27:42 PM9/1/18
to ne...@googlegroups.com
If you haven't would you mind asking in https://community.neo4j.com/c/drivers-stacks/python ?

Thank you :)



--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages