Skip to content

bitcoin.params [bug]? #142

@cluelessperson

Description

@cluelessperson

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions