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

2024-06-01 01:26:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在试用Neomodel源代码,以使其与Neo4j 3.0.1一起工作。我面对这个问题说,为节点创建提供的参数不是一个映射。在

{u'errors':[{u'message':u'为节点创建提供的参数不是映射',u'code':u'Neo.ClientError.声明.TypeError'}],u'results':[]}

 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'

我应该做些什么改变才能使它生效?在


Tags: inpycoreselflibpackageslinesite