in clients.py in the class BitcoinBasicClient is this class function:
def close_stream(self):
"""This method will close the socket stream."""
sel.socket.close()
Obviously this should be self.socket.close() and not sel.socket.close().
The error I got was this one:
('Message sent:', 'version')
Traceback (most recent call last):
File "./receive_test.py", line 33, in
main()
File "./receive_test.py", line 28, in main
client.close_stream()
File "/usr/local/lib/python2.7/dist-packages/protocoin-0.2-py2.7.egg/protocoin/clients.py", line 20, in close_stream
sel.socket.close()
NameError: global name 'sel' is not defined
Hello,
in clients.py in the class BitcoinBasicClient is this class function:
def close_stream(self): """This method will close the socket stream.""" sel.socket.close()
Obviously this should be self.socket.close() and not sel.socket.close().
The error I got was this one:
('Message sent:', 'version') Traceback (most recent call last): File "./receive_test.py", line 33, in
main()
File "./receive_test.py", line 28, in main
client.close_stream()
File "/usr/local/lib/python2.7/dist-packages/protocoin-0.2-py2.7.egg/protocoin/clients.py", line 20, in close_stream
sel.socket.close()
NameError: global name 'sel' is not defined
Kind regards M