Author

Topic: Python-BitcoinRPC (Read 714 times)

newbie
Activity: 6
Merit: 100
June 02, 2013, 07:25:52 PM
#4
You probably did not setup environment variables correctly (python dir and python scripts dir for example)
newbie
Activity: 19
Merit: 0
April 24, 2013, 07:23:16 AM
#2
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:[email protected]: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
newbie
Activity: 19
Merit: 0
April 24, 2013, 06:14:32 AM
#1
Re-created on Development board which is better I think (but I can't delete this topic) :
https://bitcointalksearch.org/topic/python-bitcoinrpc-no-module-authproxy-186285


Hello Smiley

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,
Jump to: