我在使用py2neo建立大量的关系的过程中出现了IndexError: pop from an empty deque的错误(应该是和服务器断开连接了),如何解决呢
发布于 3 年前 作者 jql750612 651 次浏览 来自 问答

以下为错误报告: Traceback (most recent call last): File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 792, 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/powerop/justin/kg/local_neo4j_kg/relation_neo4j_inserter.py”, line 82, in <module> my_neo4j.graph.create(new_subgraph) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/database.py”, line 580, in create self.update(lambda tx: tx.create(subgraph)) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/database.py”, line 439, in update self._update(cypher, timeout=timeout) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/database.py”, line 464, in _update value = f(tx) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/database.py”, line 580, in <lambda> self.update(lambda tx: tx.create(subgraph)) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/database.py”, line 1051, in create create(self) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/data/init.py”, line 195, in db_create records = tx.run(*pq) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/database.py”, line 976, in run result = self._connector.run(self.ref, cypher, parameters) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 1439, in run cx = self._reacquire(tx) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 1118, in _reacquire return self._acquire_rw(tx.graph_name) File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 1240, in _acquire_rw cx = pool.acquire() File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 799, in acquire cx = self.connect() File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 745, in connect self._bytes_sent += cx.bytes_sent File “/home/powerop/.local/lib/python3.6/site-packages/py2neo/client/init.py”, line 211, in bytes_sent raise NotImplementedError NotImplementedError

Process finished with exit code 1

回到顶部