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

请问neo4j和py2neo的推荐版本是? #13

Open
rrjia opened this issue Sep 9, 2022 · 3 comments
Open

请问neo4j和py2neo的推荐版本是? #13

rrjia opened this issue Sep 9, 2022 · 3 comments

Comments

@rrjia
Copy link

rrjia commented Sep 9, 2022

我再进行测试的时候,py2neo新建node时 报了一下错误:
neo4j Can't begin a new transaction

@chengming1108
Copy link

请问解决了吗。我也遇到这个问题了

@rrjia
Copy link
Author

rrjia commented Oct 9, 2022

我改了一下代码,py2neo 4.2.0,用的是这版本,

连接neo4j的方式修改如下:

# self.graph = Graph("http://localhost:7474", username="neo4j", password="neo4j")        
self.graph  = Graph("http://localhost:7474", auth=("neo4j", "neo4j"), name=None)

@panglinhao-1
Copy link

panglinhao-1 commented Jan 9, 2025

版本高的neo4j

# self.graph = Graph("http://localhost:7474", username="neo4j", password="123456789")
self.graph = Graph("bolt://localhost:7687", auth=("neo4j", "123456789"), name=None)

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

3 participants