Post
Topic
Board Development & Technical Discussion
Topic OP
[Python-BitcoinRPC] No module AuthProxy
by
Nontenda
on 24/04/2013, 11:22:00 UTC
Hello,

I'm trying to use the python library from jgarzik, https://github.com/jgarzik/python-bitcoinrpc
I've downloaded and run a python setup.py build / install but I cannot import authproxy.

It said that "no module name 'authproxy'" has been found.

What did I do wrong ? All I did is to run setup.py from the lastest source on github.
Is there anything more to do ?

(using CPython on Windows)

Thank you very much,

EDIT :
Pip freeze shows :

C:\Python33\Scripts>pip freeze
distribute==0.6.36
python-bitcoinrpc==0.1


EDIT 2 FOUND :
Correct code is :

import bitcoinrpc.authproxy
import pprint

BITCOINRPC = 'http://user:pass@127.0.0.1:8332/'
pp = pprint.PrettyPrinter(indent=4)

bitcoin = bitcoinrpc.authproxy.AuthServiceProxy(BITCOINRPC)

data = bitcoin.getinfo()        # call bitcoin 'getinfo' RPC

But not working on Windows, don't know why. I'll try with PHP