I installed jsonrpc and bitcoinrpc according to jgarzik's https://bitcointalk.org/index.php?topic=5314.0 but I get the following error when running the query:
Code:
<snip>\Python\Lib\site-packages\bitcoinrpc>query2.py
Traceback (most recent call last):
File "<snip>\Python\lib\json\decoder.py", line 368, in raw_decode
obj, end = self.scan_once(s, idx)
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<snip>\Python\Lib\site-packages\bitcoinrpc\query2.py", line 8, in <mod
ule>
data = bitcoin.getwork() # call bitcoin 'getwork' RPC
File "<snip>\Python\Lib\site-packages\bitcoinrpc\authproxy.py", line 106, in
__call__
response = self._get_response()
File "<snip>\Python\Lib\site-packages\bitcoinrpc\authproxy.py", line 132, in
_get_response
parse_float=decimal.Decimal)
File "<snip>\Python\lib\json\__init__.py", line 332, in loads
return cls(**kw).decode(s)
File "<snip>\Python\lib\json\decoder.py", line 352, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "<snip>\Python\lib\json\decoder.py", line 370, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
I'd appreciate any feedback. Thank you.