Skip to content

Connection refused when trying to conn.getinfo() #3

@kramer65

Description

@kramer65

I'm trying to use this litecoin-python lib to connect to my litecoind installation. I am able to connect, but when I try a getinfo() I'm getting an error that it can't connect. On the same linux installation I've also got a bitcoind daemon running on which the bitcoin-python lib works perfectly well. Below I've pasted a part of the stacktrace.

Does anybody know what's wrong or how I can fix this? All tips are welcome!

>>> import litecoinrpc
>>> conn = litecoinrpc.connect_to_local()
>>> conn.getinfo()
  File "<stdin>", line 1, in <module>
  File "build.bdist.linux-x86_64/egg/litecoinrpc/connection.py", line 162, in getinfo
    return ServerInfo(**self.proxy.getinfo())
  File "build/bdist.linux-x86_64/egg/litecoinrpc/proxy.py", line 119, in __call__
  File "build.bdist.linux-x86_64/egg/litecoinrpc/proxy.py", line 72, in request
  File "/usr/lib/python2.7/httplib.py", line 973, in request
    self._send_request(method, url, body headers)
  File "/usr/lib/python2.7/httplib.py", line 1007, in _send_request
    self.endheadersd(body)
  File "/usr/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message, body)
  File "/usr/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/usr/lib/python2.7/httplib.py", line 772, in connect
    self.timeout, self.source_address)
   File "/usr/lib/python2.7/socket.py", line 571, in create_connection
     raise err
socket.error: [Errno 111] Connection refused

(it may contain some typo's since I typed it over from a virtual machine from which I cannot copy text..)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions