Title: Python-BitcoinRPC Post by: Nontenda on April 24, 2013, 11:14:32 AM Re-created on Development board which is better I think (but I can't delete this topic) :
https://bitcointalk.org/index.php?topic=186285.0 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 ? Thank you very much, Title: Re: Python-BitcoinRPC Post by: Nontenda on April 24, 2013, 12:23:16 PM Hi, thank's for your answer.
I only have one Python installed (3.0 CPython). When I do a pip freeze, I got : C:\Python33\Scripts>pip freeze distribute==0.6.36 python-bitcoinrpc==0.1 EDIT 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 |