I'm trying to create a bitcoin address with the bitcoin-python library. I tried this code:
import bitcoinrpc
bitcoinrpc.connect_to_local().getnewaddress()
But I got this error:
error: [Errno 10061] No connection could be made because the target machine actively refused it
I am running the bitcoind daemon. Why am I getting this error and how do I fix it? or can someone direct me to an easier way to learn to develop with bitcoin -
debug.log
in its configuration directory. It should contain some additional information. I suspect you forgot to set the RPC user name and password in bitcoin-python's configuration to allow it to connect to bitcoind.