Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neo4j >= 4 compatibility (shortestonly and dijkstra-cypher algorithms only) #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aas-n
Copy link

@aas-n aas-n commented May 18, 2021

Hi,

This should allow to use aclpwn.py with neo4j >= 4.0 and python >= 3 with algorithms shortestonly and dijkstra-cypher.

  • shortestonly and dijkstra-cypher were broken because of syntax changes since neo4j v4.
  • dijkstra-cypher was partly broken because Graph Algorithms Library was deprecated by GDS.
  • Default algorithm (dijkstra) STILL need to be re-implemented since REST API was removed from neo4j v4.

This needs to be double checked. However, it should fix #4 and fix #6. Hope it helps.

@eriakort
Copy link

eriakort commented Jan 4, 2022

Hi there, I applied all the changes mentioned and I keep getting the following errors. Kindly assist.

Traceback (most recent call last): File "/usr/local/bin/aclpwn", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/aclpwn/__init__.py", line 120, in main paths = pathfinding.dijkstra_find(fromid, toid, args.database) File "/usr/local/lib/python3.9/dist-packages/aclpwn/pathfinding.py", line 34, in dijkstra_find data = resp.json() File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@cryptictech cryptictech mentioned this pull request Jun 24, 2022
@MANAVGK2038
Copy link

Hi there, I applied all the changes mentioned and I keep getting the following errors. Kindly assist.

Traceback (most recent call last): File "/usr/local/bin/aclpwn", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/dist-packages/aclpwn/__init__.py", line 120, in main paths = pathfinding.dijkstra_find(fromid, toid, args.database) File "/usr/local/lib/python3.9/dist-packages/aclpwn/pathfinding.py", line 34, in dijkstra_find data = resp.json() File "/usr/lib/python3/dist-packages/requests/models.py", line 900, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib/python3/dist-packages/simplejson/__init__.py", line 525, in loads return _default_decoder.decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/lib/python3/dist-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Does anyone know the fix to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants