Viewing a response to: @furion/ann-steemtools-a-high-level-python-library-for-steem
If you don't have a local node (its highly recommended to have a local node for use of this library), you will need to get the develop version of `piston` installed, to get the automatic fallback to remote node (new feature in python-steemlib, not on master yet). Just run this after installing steemtools: ``` pip install --upgrade --no-deps --force-reinstall git+git://github.com/xeroc/piston@develop pip install --upgrade --no-deps --force-reinstall git+git://github.com/xeroc/python-steemlib@develop pip install --upgrade --no-deps --force-reinstall git+git://github.com/xeroc/python-graphenelib@develop ```
author | furion |
---|---|
permlink | re-furion-ann-steemtools-a-high-level-python-library-for-steem-20160913t115112382z |
category | steemtools |
json_metadata | {"tags":["steemtools"]} |
created | 2016-09-13 11:51:12 |
last_update | 2016-09-13 11:51:12 |
depth | 1 |
children | 5 |
last_payout | 2016-10-15 04:22:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.029 HBD |
curator_payout_value | 0.002 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 615 |
author_reputation | 116,503,940,714,958 |
root_title | "[ANN] steemtools - A High-Level Python library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,230,784 |
net_rshares | 157,862,314,108 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
chitty | 0 | 63,091,777,809 | 21% | ||
murh | 0 | 1,060,197,941 | 55.55% | ||
furion | 0 | 93,232,661,276 | 100% | ||
frol | 0 | 477,677,082 | 100% |
Exception: Block is None. Are you trying to fetch a block from the future? Hmm any idea what could have gone wrong? I have a fresh Ubuntu 16.04 64bit + pyenv named pysteem: ``` (pysteem) 09:08:45 (master)/sandbox/steemtools$ pip install --upgrade --no-deps --force-reinstall git+git://github.com/xeroc/piston@develop Collecting git+git://github.com/xeroc/piston@develop Cloning git://github.com/xeroc/piston (to develop) to /tmp/pip-04vpcgco-build Installing collected packages: steem-piston Found existing installation: steem-piston 0.3.3 Uninstalling steem-piston-0.3.3: Successfully uninstalled steem-piston-0.3.3 Running setup.py install for steem-piston ... done Successfully installed steem-piston-0.3.3 (pysteem) 09:08:54 (master) /sandbox/steemtools$ pip install --upgrade --no-deps --force-reinstall git+git://github.com/xeroc/python-steemlib@develop Collecting git+git://github.com/xeroc/python-steemlib@develop Cloning git://github.com/xeroc/python-steemlib (to develop) to /tmp/pip-67_ya3r5-build Installing collected packages: steem Found existing installation: steem 0.2.2 Uninstalling steem-0.2.2: Successfully uninstalled steem-0.2.2 Running setup.py install for steem ... done Successfully installed steem-0.2.2 (pysteem) 09:09:17 (master) /sandbox/steemtools$ pip install --upgrade --no-deps --force-reinstall git+git://github.com/xeroc/python-graphenelib@develop Collecting git+git://github.com/xeroc/python-graphenelib@develop Cloning git://github.com/xeroc/python-graphenelib (to develop) to /tmp/pip-ywwee05e-build Installing collected packages: graphenelib Found existing installation: graphenelib 0.4.5 Uninstalling graphenelib-0.4.5: Successfully uninstalled graphenelib-0.4.5 Running setup.py install for graphenelib ... done Successfully installed graphenelib-0.4.5 (pysteem) 09:09:34 (master) /sandbox/steemtools$ python examples/blockchain.py Lost connection to node during wsconnect(): ws://127.0.0.1:8090 (1/-1) Retrying in 0 seconds Please provide a password for the new wallet Passphrase: Confirm Passphrase: Traceback (most recent call last): File "examples/blockchain.py", line 6, in <module> for event in Blockchain().replay(): File "/sandbox/pysteem/lib/python3.5/site-packages/steemtools-1-py3.5.egg/steemtools/blockchain.py", line 53, in replay Exception: Block is None. Are you trying to fetch a block from the future? ``` Timezone is GMT+2 (9:08 - it is currently 21:08 Berlin time).
author | cryptomental |
---|---|
permlink | re-furion-re-furion-ann-steemtools-a-high-level-python-library-for-steem-20160913t191321095z |
category | steemtools |
json_metadata | {"tags":["steemtools"]} |
created | 2016-09-13 19:13:21 |
last_update | 2016-09-13 19:15:09 |
depth | 2 |
children | 4 |
last_payout | 2016-10-15 04:22:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,489 |
author_reputation | 6,756,831,217,523 |
root_title | "[ANN] steemtools - A High-Level Python library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,235,088 |
net_rshares | 157,568,604 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
jasonxg | 0 | 157,568,604 | 100% |
Good catch. Try `for event in Blockchain().replay(start_block=1)` I have been refactoring a lot today, and I forgot that the blocks start at 1 (default is 0). Will push a bugfix update out asap. Edit: The bugfix is out, `pip install --upgrade steemtools`
author | furion |
---|---|
permlink | re-cryptomental-re-furion-re-furion-ann-steemtools-a-high-level-python-library-for-steem-20160913t191915566z |
category | steemtools |
json_metadata | {"tags":["steemtools"]} |
created | 2016-09-13 19:19:15 |
last_update | 2016-09-13 19:31:36 |
depth | 3 |
children | 3 |
last_payout | 2016-10-15 04:22:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 256 |
author_reputation | 116,503,940,714,958 |
root_title | "[ANN] steemtools - A High-Level Python library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,235,171 |
net_rshares | 3,902,535,297 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
murh | 0 | 1,060,197,030 | 55.55% | ||
cryptomental | 0 | 2,842,338,267 | 100% |
Yes, that was it! Thank you.
author | cryptomental |
---|---|
permlink | re-furion-re-cryptomental-re-furion-re-furion-ann-steemtools-a-high-level-python-library-for-steem-20160913t193042149z |
category | steemtools |
json_metadata | {"tags":["steemtools"]} |
created | 2016-09-13 19:30:42 |
last_update | 2016-09-13 19:30:42 |
depth | 4 |
children | 0 |
last_payout | 2016-10-15 04:22:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 28 |
author_reputation | 6,756,831,217,523 |
root_title | "[ANN] steemtools - A High-Level Python library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,235,302 |
net_rshares | 0 |
Ok, I looked around and can say that this is an **extremely useful and powerful toy**. Double upvote.
author | cryptomental |
---|---|
permlink | re-furion-re-cryptomental-re-furion-re-furion-ann-steemtools-a-high-level-python-library-for-steem-20160913t194527533z |
category | steemtools |
json_metadata | {"tags":["steemtools"]} |
created | 2016-09-13 19:45:27 |
last_update | 2016-09-13 19:45:27 |
depth | 4 |
children | 1 |
last_payout | 2016-10-15 04:22:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 101 |
author_reputation | 6,756,831,217,523 |
root_title | "[ANN] steemtools - A High-Level Python library for Steem" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 1,235,474 |
net_rshares | 0 |