ethereum / genesis_block_generator

32 stars 255 forks source link

AttributeError: 'module' object has no attribute 'get_block_timestamp' #12

Closed capitalmarkettools closed 8 years ago

capitalmarkettools commented 8 years ago

I am on ubuntu 14.04 and python 2.7.6 and get the above error when running the script. Here are the replication steps:

  1. cmt@ubuntu:~/projects/ethereum$ curl -O https://raw.githubusercontent.com/ethereum/genesis_block_generator/master/mk_genesis_block.py
  2. cmt@ubuntu:~/projects/ethereum$ python mk_genesis_block.py --extradata hash_for_0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa > genesis_block.json

Output is then: cmt@ubuntu:~/projects/ethereum$ python mk_genesis_block.py --extradata hash_for_0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa > genesis_block.json Traceback (most recent call last): File "mk_genesis_block.py", line 118, in _get_block_timestamp = b.get_block_timestamp AttributeError: 'module' object has no attribute 'get_block_timestamp' cmt@ubuntu:~/projects/ethereum$

capitalmarkettools commented 8 years ago

Apologies for this. The bitcoin version was outdated. It works now nicely after upgrading bitcoin module.