user22918: 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 -

user5464: Most likely you have not enabled JSON-RPC server in your bitcoin.conf.
You need to have:
# Enable JSON-RPC
server=1

# Username and password
rpcuser=foo
rpcpassword=bar

# This must be enabled for gettransaction() to work
txindex=1

For more information see
http://cryptoassetscore.readthedocs.org/en/latest/backends.html#module-cryptoassets.core.backend.bitcoind

22918: <p>I'm trying to create a bitcoin address with the <a href="https://github.com/laanwj/bitcoin-python" rel="nofollow">bitcoin-python</a> library.  I tried this code:</p>

<pre><code>import bitcoinrpc
bitcoinrpc.connect_to_local().getnewaddress()
</code></pre>

<p>But I got this error:</p>

<pre><code>error: [Errno 10061] No connection could be made because the target machine actively refused it
</code></pre>

<p>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 -</p>
 5464: <p>Most likely you have not enabled JSON-RPC server in your <code>bitcoin.conf</code>.</p>

<p>You need to have:</p>

<pre><code># Enable JSON-RPC
server=1

# Username and password
rpcuser=foo
rpcpassword=bar

# This must be enabled for gettransaction() to work
txindex=1
</code></pre>

<p>For more information see</p>

<p><a href="http://cryptoassetscore.readthedocs.org/en/latest/backends.html#module-cryptoassets.core.backend.bitcoind" rel="nofollow">http://cryptoassetscore.readthedocs.org/en/latest/backends.html#module-cryptoassets.core.backend.bitcoind</a></p>
