I am running Neo4j Desktop (version 1.4.15) on Windows 11.
I also have Anaconda installed on the same machine. I have performed "pip install graphdatascience" in Anaconda. When I run the following code from the Jupyter notebook:
HOST = 'bolt://localhost:7474'
USERNAME = '*'
PASSWORD = '*'
gds = GraphDataScience(HOST, auth=(USERNAME, PASSWORD))
The above results in an error:
````
AuthError Traceback (most recent call last)
::::
AuthError: {code: Neo.ClientError.Security.Unauthorized} {message: The client is unauthorized due to authentication failure.}
During handling of the above exception, another exception occurred:
UnableToConnectError Traceback (most recent call last)
Input In [17], in <cell line: 3>()
1 # Use Neo4j URI and credentials according to your setup
2 #gds = GraphDataScience(HOST, auth=(USERNAME, PASSWORD), aura_ds=False)
----> 3 gds = GraphDataScience(HOST, auth=(USERNAME, PASSWORD))
File ~\miniconda3\envs\sanjeev\lib\site-packages\graphdatascience\graph_data_science.py:91, in GraphDataScience.__init__(self, endpoint, auth, aura_ds, arrow, arrow_disable_server_verification, arrow_tls_root_certs)
89 server_version_string = self._query_runner.run_query("RETURN gds.version()").squeeze()
90 except Exception as e:
---> 91 raise UnableToConnectError(e)
93 server_version_match = re.search(r"^(\d+)\.(\d+)\.(\d+)", server_version_string)
94 if not server_version_match:
UnableToConnectError: {code: Neo.ClientError.Security.Unauthorized} {message: The client is unauthorized due to authentication failure.}
What is the resolution of the problem?