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

python与图数据库的连接有问题 #6

Open
linlin-user opened this issue Jul 30, 2024 · 3 comments
Open

python与图数据库的连接有问题 #6

linlin-user opened this issue Jul 30, 2024 · 3 comments

Comments

@linlin-user
Copy link

File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 806, in acquire
cx = self._free_list.popleft()
IndexError: pop from an empty deque

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/errors.py", line 54, in split_code
parts = code.split(".")
AttributeError: 'NoneType' object has no attribute 'split'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/hrsii/GYX/RAGQnASystem/build_up_graph.py", line 51, in
client = py2neo.Graph(args.website, user=args.user, password=args.password, name=args.dbname)
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/database.py", line 288, in init
self.service = GraphService(profile, **settings)
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/database.py", line 119, in init
self._connector = Connector(profile, **connector_settings)
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 960, in init
self._add_pools(*self._initial_routers)
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 982, in _add_pools
pool = ConnectionPool.open(
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 649, in open
seeds = [pool.acquire() for _ in range(init_size or cls.default_init_size)]
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 649, in
seeds = [pool.acquire() for _ in range(init_size or cls.default_init_size)]
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 813, in acquire
cx = self._connect()
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 764, in _connect
cx = Connection.open(self.profile, user_agent=self.user_agent,
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/init.py", line 178, in open
return HTTP.open(profile, user_agent=user_agent,
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/http.py", line 63, in open
http._hello(user_agent or http_user_agent())
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/http.py", line 162, in _hello
rs.audit()
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/client/http.py", line 479, in audit
failure = Neo4jError.hydrate(self.errors().pop(0))
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/errors.py", line 46, in hydrate
return cls(message, code)
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/errors.py", line 64, in new
classification, _, _ = cls.split_code(code)
File "/home/hrsii/anaconda3/envs/RAGQnASystem/lib/python3.10/site-packages/py2neo/errors.py", line 56, in split_code
raise ValueError(code)
ValueError: None

你好,该问题应该如何改正?

@chaaarlieeee
Copy link

我也遇到了这个问题

@Jack2chen
Copy link

我也遇到了这个问题

采用bolt方式连接 neo4j,就可以解决了,按照如下方式:
python build_up_graph.py --website bolt://localhost:7687 --user neo4j --password YourPassWord --dbname neo4j

@linlin-user
Copy link
Author

linlin-user commented Sep 11, 2024 via email

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