chainer / chainer-chemistry

Chainer Chemistry: A Library for Deep Learning in Biology and Chemistry
MIT License
618 stars 129 forks source link

ImportError: cannot import name 'set_up_predictor' #384

Closed fr-takumaurata closed 4 years ago

fr-takumaurata commented 4 years ago

I'm struggling with import error. I just set up following tutorial. Is there anyone help me?

from chainer_chemistry.models.prediction import set_up_predictor
ImportError: cannot import name 'set_up_predictor' from 'chainer_chemistry.models.prediction' (*/Applications/anaconda3/lib/python3.7/site-packages/chainer_chemistry/models/prediction/__init__.py)
corochann commented 4 years ago

set_up_predictor is implemented in master branch, but not in released library.

I guess you install chainer-chemistry via pip pip install chainer-chemistry and trying examples in this master branch??

Please install chainer-chemistry master branch as follows:

# uninstall chainer-chemistry via pip
$ pip uninstall chainer-chemistry

# install master branch
$ git clone https://github.com/pfnet-research/chainer-chemistry.git
$ pip install -e chainer-chemistry
fr-takumaurata commented 4 years ago

Thank you for quick response! I fixed it following your advice.