2014-06-05 4 views
0

Python으로 Neo4j를 Neo4jrestclient로 사용하고 있으며 로컬에서 완벽하게 작동합니다. 내가 webfaction를 사용하여 호스트 때 다음과 같은 오류를 반환TypeError neo4jrestclient append()에서 예상치 못한 키워드 인수 'data'가 있습니다.

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 

나는 문제가 될 수있는 단서가 없다. 미리 감사드립니다.

+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을 참조하십시오.

+0

neo4jrestclient를 버전 2.0.0으로 다운 그레이드 시켰고 – user1855165

+0

다음 2.0.4에서 수정해야합니다. –

관련 문제