user2624: I am writing an web application using Python/Flask. I am using
http://laanwj.github.com/bitcoin-python/doc/
to connect to my bitcoind 0.7.2 server as follows:
conn = bitcoinrpc.connect_to_local()
accounts = conn.listaccounts(0)

This is all working well. However, when I attempt to use some of the newer raw transaction calls, I get an error. For example,
raw_transaction = conn.getrawtransaction(txid)

results in the following error:
AttributeError: 'BitcoinConnection' object has no attribute 'getrawtransaction'

It seems (though I am not sure) that the methods that don't work for me are those that are listed here:
https://en.bitcoin.it/wiki/Raw_Transactions
Thanks to anyone who can help on this.

user2624: While cdecker technically answers the question posed, I found that the best solution around the problem is to use the following package to connect with bitcoind:
https://github.com/jgarzik/python-bitcoinrpc

user120: That particular API client library does not yet implement all calls that are exposed by bitcoind. See the API documentation for a list of calls that are implemented.
The problem is that your Bitcoin client knows about getrawtransaction but the python library you're using to connect to it does not know what to do with it yet.

2624: <p>I am writing an web application using Python/Flask. I am using</p>

<p><a href="http://laanwj.github.com/bitcoin-python/doc/" rel="nofollow">http://laanwj.github.com/bitcoin-python/doc/</a></p>

<p>to connect to my bitcoind 0.7.2 server as follows:</p>

<pre><code>conn = bitcoinrpc.connect_to_local()
accounts = conn.listaccounts(0)
</code></pre>

<p>This is all working well. However, when I attempt to use some of the newer raw transaction calls, I get an error. For example,</p>

<pre><code>raw_transaction = conn.getrawtransaction(txid)
</code></pre>

<p>results in the following error:</p>

<pre><code>AttributeError: 'BitcoinConnection' object has no attribute 'getrawtransaction'
</code></pre>

<p>It seems (though I am not sure) that the methods that don't work for me are those that are listed here:</p>

<p><a href="https://en.bitcoin.it/wiki/Raw_Transactions" rel="nofollow">https://en.bitcoin.it/wiki/Raw_Transactions</a></p>

<p>Thanks to anyone who can help on this.</p>
 2624: <p>While cdecker technically answers the question posed, I found that the best solution around the problem is to use the following package to connect with <code>bitcoind</code>:</p>

<p><a href="https://github.com/jgarzik/python-bitcoinrpc" rel="nofollow">https://github.com/jgarzik/python-bitcoinrpc</a></p>
 120: <p>That particular API client library does not yet implement all calls that are exposed by <code>bitcoind</code>. See the <a href="http://laanwj.github.com/bitcoin-python/doc/bitcoinrpc.connection.html" rel="nofollow">API documentation</a> for a list of calls that are implemented.</p>

<p>The problem is that your Bitcoin client knows about <code>getrawtransaction</code> but the python library you're using to connect to it does not know what to do with it yet.</p>
