Hey, I'm getting apython error when I'm trying to generate the genesis block:
python ./mk_genesis_block.py --extradata 0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa
....
Collected timestamps: 3020
Collected timestamps: 3040
API not returning data. Retrying
API not returning data. Retrying
API not returning data. Retrying
API not returning data. Retrying
Traceback (most recent call last):
File "./mk_genesis_block.py", line 293, in
print json.dumps(evaluate(), indent=4)
File "./mk_genesis_block.py", line 285, in evaluate
p = list_purchases(th)
File "./mk_genesis_block.py", line 224, in list_purchases
t = get_block_timestamp([x['height'] - 1 for x in subpq])
File "./mk_genesis_block.py", line 153, in new_method
c[str(arg)] = method(arg)
File "/Library/Python/2.7/site-packages/bitcoin/bci.py", line 416, in get_block_timestamp
"%Y-%m-%dT%H:%M:%SZ")) for x in k['data']}
TypeError: 'NoneType' object is not iterable
0 ·
Comments
(sudo) pip install --upgrade bitcoin
python mk_genesis_block.py --extradata --insight 0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa > genesis_block.json
Traceback (most recent call last):
File "mk_genesis_block.py", line 124, in
EXTRADATA = (d[2:] if d[:2] == '0x' else d).decode('hex')
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/hex_codec.py", line 42, in hex_decode
output = binascii.a2b_hex(input)
TypeError: Odd-length string
python mk_genesis_block.py --extradata 0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa --insight > genesis_block.json
File "mk_genesis_block.py", line 293
print json.dumps(evaluate(), indent=4)
^
SyntaxError: invalid syntax
sudo pip install --upgrade bitcoin
I launch
mk_genesis_block.py --extradata 0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa --insight > genesis_block.json
and receive the error message
API not returning data. Retrying
API not returning data. Retrying
API not returning data. Retrying
API not returning data. Retrying
Traceback (most recent call last):
File "mk_genesis_block.py", line 295, in
print json.dumps(evaluate(), indent=4)
File "mk_genesis_block.py", line 283, in evaluate
outs = history(exodus)
File "mk_genesis_block.py", line 155, in new_method
c[str(arg)] = method(arg)
File "mk_genesis_block.py", line 74, in insight_history
hashes = json.loads(make_request(INSIGHT_ADDR + '/api/addr/'+a))["transactions"]
File "mk_genesis_block.py", line 69, in make_request
raise Exception(p)
Exception:
I am on a MacBook Pro OSX 10.10.4 and running Python 2.7.6
please advise
thanks in advance
genesis_block.son
by *omitting* the --insight flag.
maybe the meaning of that flag (what it does, when it should/should not be used) is super-obvious to the inner circle of Ethereum developers.
but you have no idea how confusing/frustrating this all is from someone on the outside.
Source: https://blog.ethereum.org/2015/07/27/final-steps/