You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to connect and import a prov file which was created using GitLab2Prov. When running the code given in the documentation, I run into the below error.
Traceback (most recent call last):
File "c:\Users\AKSHAAGA\Documents\prov2neo_test.py", line 12, in
client.connect(
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\prov2neo\client.py", line 96, in connect
self.add_uniqueness_constraints()
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\prov2neo\client.py", line 109, in add_uniqueness_constraints
if "id" not in self.graph_db.schema.get_uniqueness_constraints(label):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\database.py", line 894, in get_uniqueness_constraints
return [k[0] for k in self._get_indexes(label, unique_only=True)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\database.py", line 818, in _get_indexes
result = self.graph.run("CALL db.indexes")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\database.py", line 405, in run
return self.auto().run(cypher, parameters, **kwparameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\database.py", line 992, in run
self.connector.pull(result, -1)
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\client_init.py", line 1434, in pull
cx.pull(result, n=n)
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\client\bolt.py", line 1001, in pull
self._audit(self._transaction)
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\client\bolt.py", line 810, in _audit
task.audit()
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\client\bolt.py", line 1140, in audit
item.audit()
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\client\bolt.py", line 1140, in audit
item.audit()
File "C:\Users\AKSHAAGA\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2neo\client\bolt.py", line 1303, in audit
raise self._failure
py2neo.errors.ClientError: [Procedure.ProcedureNotFound] There is no procedure with the name db.indexes registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
I am trying to connect to a local neo4j DB which is newly created and thus doesn't contain anything. The format for importing data is json.
I was hoping to just run it on a new instance but it appears that first the DB needs to be setup with some files. What exactly needs to be done as I couldn't find it mentioned in the document for prov2neo.
Any guidance is appreciated. Thanks
The text was updated successfully, but these errors were encountered:
I think the best way forward for this library is to move away from Py2neo and use the official Python driver.
It seems to only use Py2neo for the Bolt connectivity part, so the replacement should not be too painful.
I am trying to connect and import a prov file which was created using GitLab2Prov. When running the code given in the documentation, I run into the below error.
I am trying to connect to a local neo4j DB which is newly created and thus doesn't contain anything. The format for importing data is json.
I was hoping to just run it on a new instance but it appears that first the DB needs to be setup with some files. What exactly needs to be done as I couldn't find it mentioned in the document for prov2neo.
Any guidance is appreciated. Thanks
The text was updated successfully, but these errors were encountered: