0
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 -
Check bitcoind's log, which is
debug.login 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. – David A. Harding – 2015-01-14T23:57:53.867Is bitcoind running? That's the error you would get if bitcoin weren't listening on its port. – Nick ODell – 2015-01-14T23:59:00.537
For easier way I am working with this Python project: https://bitbucket.org/miohtama/cryptoassets - expect 0.1 release in few days.
– Mikko Ohtamaa – 2015-01-15T02:20:14.253Ok now there is a release http://pypi.python.org/pypi/cryptoassets.core and tutorial file:///Users/mikko/code/cryptoassets/cryptoassets/docs/build/html/gettingstarted.html
– Mikko Ohtamaa – 2015-02-06T10:11:28.247