Re: [Neo4j] Simple python script fails with "Connection Refused"

348 views
Skip to first unread message

Nigel Small

unread,
Sep 3, 2012, 12:06:52 PM9/3/12
to ne...@googlegroups.com
Hi Tom

Your URI contains port 4747 instead of 7474 - I'm guessing you haven't changed the default? :-)

Nigel


On 3 September 2012 17:00, Tom Diethe <tdi...@gmail.com> wrote:
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?

--
 
 

Tom Diethe

unread,
Sep 4, 2012, 10:12:26 AM9/4/12
to ne...@googlegroups.com
Oh how stupid. Many thanks for spotting that!

Tom
Reply all
Reply to author
Forward
0 new messages