I am working through Master Bitcoin. I got the bitcoin client up and running. I am now trying to access the client from python. In the example, there is a line that says from bitcoin.rpc import Rawproxy.

I get the error message no module named rpc. When I run pip freeze, I have python-bitcoinrpc==1.0 listed. Why can't this module be found?


in debian =)

sudo apt-get install libssl-dev

pip install python-bitcoinlib or pip3 install python-bitcoinlib

| improve this answer | |
  • Thank you. That worked. Can I ask how you knew this? there seems to be no association to the library name in import and what you install. I looked everywhere online trying to figure out the library. – user2242044 Sep 25 '17 at 19:57

bicoinlib is the module you try to use to handle bitcoind, bitcoin-cli in python, rpc module is part of bitcoinlib.

libssl-dev is needed to handle SSL and TLS cryptographic protocols .

if bitcoinlib not work in newer bitcoin core versions 0.15 or newer just use raw bitcoinrpc.authProxy module.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.