-
Notifications
You must be signed in to change notification settings - Fork 641
Open
Description
root@redwood:/etc/znc/modules# cat test.py
import bitcoin.rpc
txid = '55374e78c86bb739c0ef69f92e3f0cfa9b233e293426170c65a2fe381fd54593'
proxy = **bitcoin.rpc.Proxy(btc_conf_file='/etc/znc/bitcoin.conf')**
root@redwood:/etc/znc/modules# python3.5 test.py
Traceback (most recent call last):
File "test.py", line 3, in
proxy = bitcoin.rpc.Proxy(btc_conf_file='/etc/znc/bitcoin.conf')
File "/usr/local/lib/python3.5/dist-packages/bitcoin/rpc.py", line 302, in init
**kwargs)
File "/usr/local/lib/python3.5/dist-packages/bitcoin/rpc.py", line 157, in init
service_port = bitcoin.params.RPC_PORT
AttributeError: module 'bitcoin' has no attribute 'params'
Params is defined here:
https://github.com/petertodd/python-bitcoinlib/blob/master/bitcoin/__init__.py#L62
but, bitcoin.rpc DOES contain "import bitcoin"
https://github.com/petertodd/python-bitcoinlib/blob/master/bitcoin/rpc.py#L45
Metadata
Metadata
Assignees
Labels
No labels