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

py2neo.errors.ClientError: [Procedure.ProcedureNotFound] #3

Open
akshaykagarwal opened this issue Apr 3, 2023 · 2 comments
Open

py2neo.errors.ClientError: [Procedure.ProcedureNotFound] #3

akshaykagarwal opened this issue Apr 3, 2023 · 2 comments

Comments

@akshaykagarwal
Copy link

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

@fbiville
Copy link

Disclaimer: I work at Neo4j in the drivers team but I don't own nor contribute to this repo.
I answer your duplicated question here: https://stackoverflow.com/questions/76062685/py2neo-errors-clienterror-procedure-procedurenotfound-there-is-no-procedure-w/76062879#76062879.

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.

@akshaykagarwal
Copy link
Author

@fbiville thanks for the response. Your suggestion to downgrade and try worked.

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

No branches or pull requests

2 participants