I have been playing with Aura, populating a few records and querying. All great! Now, I want to move from console to programming with python. I’m using Jupyter notebook and python 3.9 on a Mac. I’ve installed neo4j and all looks good. However, when trying to create the driver, I got the infamous message of connection refused.
I’ve read several topics on the same problem and tried all combinations of neo4j and bolt with +s and so on. I keep getting the same problem. I spent hours already and reaching the frustration point of giving up with this neo4j and python. There is almost zero information on how to deal with a basic problem of connecting to the database.
`To verify immediately that the driver can connect to the
database (valid credentials, compatible versions, etc), use the
.verify_connectivity() method after initializing the driver.
In case of failure, enabling the driver’s logs can help
diagnosing the issue.
Logging
The driver logs messages through the native logging library to a
logger named neo4j. To redirect log messages to standard output,
use the watch function:
import sys
from neo4j.debug import watch
watch("neo4j", out=sys.stdout)
or was this already tried and proving unsucessful?