ethereum/pyethapp

loadchain.py in examples does not work

bgits opened this issue · 7 comments

bgits commented

Checklist

  • [X ] installed pyethapp inside a virtualenv

System/environment

  • OS: FIXME
  • python version: Python 2.7.13
  • pyethapp version: 1.5.0
  • installation method (pip & pypi/git & setup.py): git clone && USE_PYETHEREUM_DEVELOP=1 python setup.py develop
  • pyethapp branch (if applicable): develop

Expected behaviour

should read all block in the chain and print the blk.header.number

Observed behaviour

File "loadchain.py", line 62, in
chain = get_chain()
File "loadchain.py", line 18, in get_chain
return Chain(Env(db))
File "/Users/anaconda/envs/pyethapp/lib/python2.7/site-packages/ethereum-2.0.4-py2.7.egg/ethereum/pow/chain.py", line 47, in init
elif "extraData" in genesis:
TypeError: argument of type 'Env' is not iterable

Moved past this error by setting genesis = genesis.config but then ran in to the next error

File "loadchain.py", line 62, in
chain = get_chain()
File "loadchain.py", line 18, in get_chain
return Chain(Env(db))
File "/Users/anaconda/envs/pyethapp/lib/python2.7/site-packages/ethereum-2.0.4-py2.7.egg/ethereum/pow/chain.py", line 68, in init
}, self.env)
File "/Users/anaconda/envs/pyethapp/lib/python2.7/site-packages/ethereum-2.0.4-py2.7.egg/ethereum/genesis_helpers.py", line 118, in mk_basic_state
addr = normalize_address(addr)
File "/Users/anaconda/envs/pyethapp/lib/python2.7/site-packages/ethereum-2.0.4-py2.7.egg/ethereum/utils.py", line 220, in normalize_address
raise Exception("Invalid address format: %r" % x)
Exception: Invalid address format: 'ACCOUNT_INITIAL_NONCE'

Steps to reproduce

cd examples && python loadchain.py

@bgits you are right sir.


>>> from ethereum.ethpow import check_pow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ethpow
>>> from ethereum.chain import Chain
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named chain
bgits commented

I discovered after opening this issue that pyethapp just no longer works with the current chain.

what is the substitute of this ?

You created this issue on 16 Oct .

I think, Author or contributor have to look on this .

bgits commented

Thanks for the update.

Yes, looks like py-evm is in developing mode and I am also not sure py-evm is in a working state or not.

Afaik you are correct that it is not properly being developed/maintained anymore, but it is definitely not being replaced by py-evm. Pyethapp was a full client, py-evm is just an evm implementation so if anything it is more likely to replace pyethereum as mentioned in its readme.