algorithmiaio / danku

Exchange ML models in a trustless manner!
148 stars 30 forks source link

Error running download_train_visualize.py #4

Closed vanHavel closed 6 years ago

vanHavel commented 6 years ago

After creating the virtual environment and installing the requirements, I am running $ python3 -W ignore competition/download_train_visualize.py and get the error

  File "competition/download_train_visualize.py", line 5, in <module>
    from web3 import Web3, HTTPProvider, IPCProvider
  File "<path>/blockchain/danku/venv/lib/python3.6/site-packages/web3/__init__.py", line 5, in <module>
    from web3.main import Web3
  File "<path>/blockchain/danku/venv/lib/python3.6/site-packages/web3/main.py", line 6, in <module>
    from eth_utils import (
ImportError: cannot import name 'force_text'

there also seems to be a problem with 'coerce_args_to_text' from eth_utils. This is strange because I assume the right version of these libraries should get installed in the venv... Could it have something to do with using Python3 for this? The system is OS X.

vanHavel commented 6 years ago

You are using deprecated functions of eth_utils. Downgrading eth_utils to 0.8.1 resolves this error.

sekisamu commented 6 years ago

try pip install web3

besirkurtulmus commented 6 years ago

@vanHavel Looks like it's an issue with populus.

Upgrading web3 should fix it: pip install --upgrade web3