Open zhuchunyu opened 8 years ago
you are using wrong bitcoinrpc it seems, i had the same problem. I downloaded this one https://github.com/jgarzik/python-bitcoinrpc and it works
hey @zhuchunyu , it seems there's a bug with the pip install python-bitcoinrpc
version.
Run pip install git+https://github.com/jgarzik/python-bitcoinrpc.git
instead.
Source: Bitcoin StackExchange
Get data failed,I added the following test code,The acquired data is empty.
access = AuthServiceProxy("http://user:pass@127.0.0.1:14001") getInfo = access.getinfo() print getInfo print access.getblockcount() print access.getdifficulty() print access.getnetworkghps() print access.getcustodianvotes() print access.getpeerinfo()
The value is printed out None None None None None None
File "NuParserv007.py", line 40, in
BlockCount = access.getinfo()["blocks"]
TypeError: 'NoneType' object has no attribute 'getitem'