New to neo4j. Trying to set up an environment to prototype an idea, and I am being very unlucky using Python to connect to a neo4j running in Podman, no K8s, no fanciness, just a straight-up container.
-
Setup:
Running macOS M1, Monterey 12.5 -
neo4j running in podman:
podman run --add-host=neo4j:127.0.0.1 -p7474:7474 -p7687:7687 -d --env NEO4J_AUTH=neo4j/test neo4j:latest
(I am able to connect to the instance via web browser and do queries etc at http://localhost:7474)
- From macOS in the host OS, I am running a virtual environment with Python 3.9.1. My script:
``'''
from neo4j import GraphDatabase
driver = GraphDatabase.driver("neo4j://127.0.0.1:7474",auth=("neo4j", "test"))
driver.verify_connectivity()
'''
(also tried with localhost instead of the IP address)
- Results I am getting (from Python shell):
:1: ExperimentalWarning: The configuration may change in the future.
Traceback (most recent call last):
File "", line 1, in
File "/Users/barnysanchez/.pyenv/versions/class/lib/python3.9/site-packages/neo4j/meta.py", line 85, in f_
return f(*args, **kwargs)
File "/Users/barnysanchez/.pyenv/versions/class/lib/python3.9/site-packages/neo4j/__init__.py", line 435, in verify_connectivity
return self._verify_routing_connectivity()
File "/Users/barnysanchez/.pyenv/versions/class/lib/python3.9/site-packages/neo4j/__init__.py", line 461, in _verify_routing_connectivity
raise ServiceUnavailable("Could not connect to any routing servers.")
neo4j.exceptions.ServiceUnavailable: Could not connect to any routing servers.
Please any clues or pushes in the right direction will be greatly appreciated.