0

我在 python 中将 neo4jrestclient 用于 Neo4j,并且在本地运行良好。当我使用 webfaction 托管它时,它返回以下错误:

TypeError at /add/
append() got an unexpected keyword argument 'data'
Django Version: 1.6.1
Exception Type: TypeError
Exception Value:    
append() got an unexpected keyword argument 'data'
Exception Location: /home/kokos/lib/python2.7/neo4jrestclient/client.py in create, line 1036

我不知道问题可能出在哪里。提前致谢。

4

1 回答 1

0

我也有同样的问题。请参阅下面的最小示例。似乎query调用弄乱了库的某些内部状态。我会进一步调查。

>>> gdb.node()
<Neo4j Node: http://localhost:7474/db/data/node/140>
>>> gdb.query("match (n) where 0 > 1 return n")
<neo4jrestclient.query.QuerySequence object at 0x00000000037A5C88>
>>> gdb.node()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python34\lib\site-packages\neo4jrestclient\client.py", line 1000, in __call__
    return self.create(**kwargs)
  File "C:\Program Files\Python34\lib\site-packages\neo4jrestclient\client.py", line 1036, in create
    returns=NODE)
TypeError: append() got an unexpected keyword argument 'data'

这是因为query将相应的事务存储在全局变量中,并且在以后的调用中尝试使用该事务。然而TransactionQueryTransaction是不同的不兼容的类。请参阅https://github.com/versae/neo4j-rest-client/issues/103

于 2014-06-14T13:54:34.567 回答