Just chiming in with another solution that helped me get around the "Unable to retrieve routing information" error when I moved from a local to an Aura connection.
I am able to use Python 3.8.1. I found that I needed to update my version of the neo4j module from 4.2.1 to 4.4.1.
I also found that at some stage during troubleshooting I had dropped "+s" from the "neo4j+s://" bit of the URI. Re-adding "+s" ultimately got me past the error.
Also really valuable for debugging is this snippet rouven.bauer posted:
from neo4j import GraphDatabase
from neo4j.debug import watch
uri = "..."
driver = GraphDatabase.driver(uri, auth=("neo4j", "password123"))
def workload(tx):
return tx.run("RETURN 1 as n").data()
with watch("neo4j"): # enable logging
with driver.session() as session:
session.write_transaction(workload)
driver.close()
That showed me the underlying "Connection to :7687 closed without handshake response" error, once I updated the neo4j module.
Some useful docs: