Python / Py2neo:weakref异常

时间:2015-03-22 11:06:15

标签: python neo4j cypher py2neo

我使用Py2neo以下列方式创建关系:

article = graph.merge_one("Article", "id", aid)
article2 = graph.merge_one("Article", "id", aid2)
graph.create_unique(Relationship(article, "RELATED", article2))

但是我收到以下错误消息:

KeyError: 'http://localhost:7474/db/data/relationship/63'
Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7f8ef4116e18>
Traceback (most recent call last):
File "/var/www/or/env/lib/python3.4/weakref.py", line 108, in remove
del self.data[wr.key]

1 个答案:

答案 0 :(得分:0)

你可能遇到过这个错误: https://github.com/nigelsmall/py2neo/issues/391

如果是这样,这在2.0.6中已得到修复。