Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirement里py2neo版本有问题 #74

Open
PikaByter opened this issue Apr 6, 2020 · 4 comments
Open

Requirement里py2neo版本有问题 #74

PikaByter opened this issue Apr 6, 2020 · 4 comments

Comments

@PikaByter
Copy link

Requirement里py2neo版本是4.1.3,但neo_models.py代码中使用了find_one,这是在v2和v3支持的函数,v4已不再支持。
现在查找节点的操作是这样子的:

from py2neo import Graph, NodeMatcher
graph = Graph()
matcher = NodeMatcher(graph)
matcher.match("Person", name="Keanu Reeves").first()
(_224:Person {born:1964,name:"Keanu Reeves"})

官方文档:https://py2neo.org/v4/index.html

@Marchbruno09
Copy link

同发现了这个问题,py2neo应该用的不是v4==

@Marchbruno09
Copy link

不过刚刚看了他,估计是更新了,已经没有使用find_one这个函数了

@pydxflwb
Copy link

如果使用neo4j v4以上版本,需要py2neo v5,可以搜索一下py2neo v5 handbook 查看安装

@qinliuzhuang
Copy link

我进行了实体查询,查不到,出错了,然后改了py2neo的版本为3.1.2结果可以查询了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants