Skip to content

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

Open
aas-n wants to merge 4 commits into
fox-it:masterfrom
aas-n:master
Open

Neo4j >= 4 compatibility (shortestonly and dijkstra-cypher algorithms only)#9
aas-n wants to merge 4 commits into
fox-it:masterfrom
aas-n:master

Conversation

@aas-n

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

Copy link
Copy Markdown

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

eriakort commented Jan 4, 2022

Copy link
Copy Markdown

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
Copy Markdown

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