使用py2neo工具时,尝试追加事务时出现以下错误:
有什么想法吗?
statement ="MERGE (a:Person {name:\""+actorName+"\"}) "\
"\n"\
"MERGE (b:Series {title:\""+actorsFields[3]+"\", year:\""+actorsFields[5]+"\"}) "\
"\n"\
"CREATE UNIQUE (a)-[:ACTED_IN]->(b)"\
"RETURN a,b"
print(statement)
tx.append(statement)
追踪信息如下:
Traceback (most recent call last):
File "/Volumes/PyCharm CE/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 2222, in <module>
globals = debugger.run(setup['file'], None, None)
File "/Volumes/PyCharm CE/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1648, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/Thibault/PycharmProjects/movieGraph/src/mainCypher.py", line 110, in <module>
tx.append(statement)
File "/Library/Python/2.7/site-packages/py2neo/cypher/core.py", line 220, in append
self.__assert_unfinished()
File "/Library/Python/2.7/site-packages/py2neo/cypher/core.py", line 192, in __assert_unfinished
raise Finished(self)
py2neo.error.Finished
有什么想法吗?