ethereum / economic-modeling

118 stars 52 forks source link

please provide instructions to run simulation #3

Open kumavis opened 8 years ago

kumavis commented 8 years ago

I am not a pythonista. not sure what to do.

╭─kumavis@xyzs-MBP  ~/dev/eth-economic-modeling/casper3   (master*) 
╰─$ python test.py 
Traceback (most recent call last):
  File "test.py", line 2, in <module>
    from casper import Validator
  File "/Users/kumavis/dev/eth-economic-modeling/casper3/casper.py", line 1, in <module>
    from ethereum.casper_utils import RandaoManager, get_skips_and_block_making_time, \
ImportError: No module named ethereum.casper_utils
╭─kumavis@xyzs-MBP  ~/dev/eth-economic-modeling/casper3   (master*) 
╰─$ python --version
Python 2.7.11
cryptophonic commented 7 years ago

did this ever get answered? same problem here.

janx commented 7 years ago

Run it with https://github.com/ethereum/pyethereum/commit/e8a4f7c.

cryptophonic commented 7 years ago

awesome, thanks for the input. will give that a shot.

cryptophonic commented 7 years ago

Following up on this, the commit above (e8a4f7c) worked for me against the tip for this repo as of today. @kumavis set your PYTHONPATH to the pyethereum repo directory after cloning that rev and it should work.