Neo4j 3.0.1 - Neomodel 2.0.7 - 为节点创建提供的参数不是Map

时间:2016-05-25 09:09:11

标签: python neo4j cypher py2neo neomodel

我正在尝试使用Neomodel源代码使其与Neo4j 3.0.1一起使用。我正面对这个神说,为节点创建提供的参数不是Map。

{u'错误':[{u' message':u'为节点创建提供的参数不是地图',u'代码':你' Neo.ClientError.Statement.TypeError'}],你'结果':[]}

 Traceback (most recent call last):
      File "/Users/adaggula/Documents/workspace/Collective[i]-pve/test_revised.py", line 32, in <module>
        jim = Person(name='jim5').save()
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/neomodel/signals.py", line 25, in hooked
        val = fn(self, *args, **kwargs)
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/neomodel/core.py", line 160, in save
        self._id = self.create(self.__properties__)[0]._id
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/neomodel/core.py", line 290, in create
        results = db.cypher_query(query, params)
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/neomodel/util.py", line 219, in cypher_query
        results = self._execute_query(query, params)
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/neomodel/util.py", line 212, in _execute_query
        results = self.session.cypher.execute(query, params)
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/py2neo/cypher/core.py", line 113, in execute
        results = tx.commit()
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/py2neo/cypher/core.py", line 325, in commit
        return self.post(self.__commit or self.__begin_commit)
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/py2neo/cypher/core.py", line 280, in post
        raise self.error_class.hydrate(error)
      File "/Users/adaggula/workspace/python/pve/lib/python2.7/site-packages/py2neo/cypher/error/core.py", line 54, in hydrate
        error_cls = getattr(error_module, title)
    AttributeError: 'module' object has no attribute 'TypeError'

我应该做些什么来让它发挥作用?

0 个答案:

没有答案