I was happily using bitcoinrpc until I moved to python3 (python3.6.4 at the moment) and it stops working. Now I'm trying to use this one: https://github.com/XertroV/bitcoin-python3 After completing install I run the code:
import bitcoinrpc
access = bitcoinrpc.connect_to_local()
access.getinfo()
Getting the following error:
Traceback (most recent call last): File "/home/phglz/Desktop/Satoshing/backend.py", line 8, in access.getinfo() File "/usr/local/lib/python3.6/dist-packages/bitcoin_python3-0.3.1-py3.6.egg/bitcoinrpc/connection.py", line 133, in getinfo File "/usr/local/lib/python3.6/dist-packages/bitcoin_python3-0.3.1-py3.6.egg/bitcoinrpc/proxy.py", line 116, in call File "/usr/local/lib/python3.6/dist-packages/bitcoin_python3-0.3.1-py3.6.egg/bitcoinrpc/proxy.py", line 67, in request File "/usr/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/lib/python3.6/http/client.py", line 964, in send self.connect() File "/usr/lib/python3.6/http/client.py", line 936, in connect (self.host,self.port), self.timeout, self.source_address) File "/usr/lib/python3.6/socket.py", line 712, in create_connection sock.bind(source_address) TypeError: getsockaddrarg: AF_INET address must be tuple, not int
This issue has been posted before but not solution has been reported. I searched all over the web as much as I could.
If someone out there has an idea of what could be wrong I would appreciate his knowledge.
Thanks a lot.
Felipe