簡體   English   中英

Python / Py2neo:weakref異常

[英]Python/Py2neo: weakref exception

我通過以下方式使用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]

你有可能遇到這個錯誤: https//github.com/nigelsmall/py2neo/issues/391

如果是這樣,這在2.0.6中得到修復。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM