-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Attempting to install / run this on current versions of neo4j / neo4j-driver presents a host of issues. Unfortunately its not a super quick fix.
neo4j-driver (python package) has removed the neo4j.v1 package. This is relatively easy to fix. simply change
from neo4j.v1 import GraphDatabase to
from neo4j import GraphDatabase
The next issue is that the {arg} format of passing variables in database queries has been depreciated. We need to use $arg.
This needs to be fixed in multiple places, but as an example (init.py line ~106):
q = "MATCH (n:%s {name: {name}}) RETURN n"
with database.driver.session() as session:
fromres = session.run(q % args.from_type.capitalize(), name=from_object)
Must change to;
q = "MATCH (n:%s {name: $name}) RETURN n"
with database.driver.session() as session:
fromres = session.run(q % args.from_type.capitalize(), name=from_object)
Finally, the REST API has been removed. This is the tough one, as I'm not sure how to fix. See pathfinding.py:dijkstra_find()
This is just an FYI for anyone attempting to install using recent packages / versions of things.