Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to "ImportError: cannot import name blocks" #15

Open
DazWilkin opened this issue Nov 2, 2017 · 0 comments
Open

Solution to "ImportError: cannot import name blocks" #15

DazWilkin opened this issue Nov 2, 2017 · 0 comments

Comments

@DazWilkin
Copy link

As-is the code is not currently working.

This helped me:
ethereum/pyethapp#241

Revise Dockerfile to:

# build with `docker build -t localethereum/client-python .`
FROM python:2.7.11

RUN pip install pyethapp==1.5.1a0
ENTRYPOINT ["/usr/local/bin/pyethapp"]

Then make setup and the errors outlined below should be replaced with a successful start:

docker-compose up --scale bootstrap=1 --scale miner=2 --scale eth=3
Creating simple_eth_1 ... 
Creating simple_eth_2 ... 
Creating simple_eth_3 ... 
Creating simple_eth_1 ... done
Creating simple_eth_2 ... done
Creating simple_eth_3 ... done
Creating bootstrap ... 
Creating bootstrap ... done
Creating simple_miner_1 ... 
Creating simple_miner_2 ... 
Creating simple_miner_1 ... done
Creating simple_miner_2 ... done

BUT recurrent:

| Traceback (most recent call last):
|   File "/usr/local/bin/pyethapp", line 7, in <module>
|     from pyethapp.app import app
|   File "/usr/local/lib/python2.7/site-packages/pyethapp/app.py", line 19, in <module>
|     from ethereum import blocks
| ImportError: cannot import name blocks
bootstrap exited with code 1

and

docker-compose ps
     Name                   Command               State    Ports
----------------------------------------------------------------
bootstrap        /usr/local/bin/pyethapp -c ...   Exit 1        
debug            /usr/local/bin/pyethapp -c ...   Exit 1        
simple_eth_1     /usr/local/bin/pyethapp -c ...   Exit 1        
simple_eth_2     /usr/local/bin/pyethapp -c ...   Exit 1        
simple_eth_3     /usr/local/bin/pyethapp -c ...   Exit 1        
simple_miner_1   /usr/local/bin/pyethapp -c ...   Exit 1        
simple_miner_2   /usr/local/bin/pyethapp -c ...   Exit 1        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant