I have neo4j v1.7 installed (on ubuntu) and the web management tool runs fine. I installed py2neo using pip, but running a simple script always fails:
python -c 'from py2neo import neo4j; neo4j.GraphDatabaseService("http://localhost:4747/db/data/")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/py2neo/neo4j.py", line 138, in __init__
rs = self._send(rest.Request(self, "GET", self._uri))
File "/usr/local/lib/python2.6/dist-packages/py2neo/rest.py", line 360, in _send
raise SocketError(err)
py2neo.rest.SocketError: error(111, 'Connection refused')
The same is true if I replace localhost with 127.0.0.1 or the actual server name, or even the server's ip. Any ideas why this might be happening?
--