py2neo.database.ClientError: SyntaxError: Invalid input '{': expected "+" or "-" (line 1, column 33 (offset: 32))

230 Views Asked by At

my python code

        nameu = 'person_%d'%(rel[0])
        namev = 'person_%d'%(rel[1])
        nodeu = graph.nodes.match("Person",name=nameu).first()
        nodev = graph.nodes.match("Person",name=namev).first()
py2neo.database.ClientError: SyntaxError: Invalid input '{': expected "+" or "-" (line 1, 
column 33 (offset: 32))
"MATCH (_:Person) WHERE _.name = {1} RETURN _"
1

There are 1 best solutions below

0
Bruce On

I replace py2neo 4.3.0 with 2021.1.1. It works.