neo4j / graph-data-science-client

A Python client for the Neo4j Graph Data Science (GDS) library
https://neo4j.com/product/graph-data-science/
Apache License 2.0
183 stars 44 forks source link

Installation error when using with AuraDS #680

Closed ArshiaSangwan closed 3 weeks ago

ArshiaSangwan commented 1 month ago

When I am trying to instantiate the GraphDataScience object, I get the following error. Note: I am using a Neo4j AuraDS and the code is being run on Google Collab.

Error: CypherSyntaxError: {code: Neo.ClientError.Statement.SyntaxError} {message: Unknown function 'gds.version' (line 1, column 8 (offset: 7)) "RETURN gds.version()" ^}

During handling of the above exception, another exception occurred:

GdsNotFound Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/graphdatascience/query_runner/neo4j_query_runner.py in server_version(self) 196 # driver.close() 197 --> 198 raise GdsNotFound( 199 """The Graph Data Science library is not correctly installed on the Neo4j server. 200 Please refer to https://neo4j.com/docs/graph-data-science/current/installation/.

Main error:

GdsNotFound: The Graph Data Science library is not correctly installed on the Neo4j server. Please refer to https://neo4j.com/docs/graph-data-science/current/installation/.

My code :

from graphdatascience import GraphDataScience

gds = GraphDataScience( os.environ["NEO4J_URI"], auth=(os.environ["NEO4J_USERNAME"], os.environ["NEO4J_PASSWORD"]), aura_ds=True)

Any help with this regard would be greatly appreciated. Thank you!

FlorentinD commented 1 month ago

Hello @ArshiaSangwan , Sadly, I am unable to reproduce your issue.

Did you wait for the AuraDS instance to be ready? Could you try again?

If you provide me your dbid, I can also check internally if there was any issue with the instance.

FlorentinD commented 3 weeks ago

Closing due to inactivity. Please reopen the issue, if necessary.