TypeError neo4jrestclient append()得到一个意外的关键字参数'data'

时间:2014-06-05 15:31:10

标签: python typeerror neo4jrestclient

我在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

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

1 个答案:

答案 0 :(得分: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

相关问题