spearmint icon indicating copy to clipboard operation
spearmint copied to clipboard

error "ImportError: No module named google.protobuf.internal"

Open dinosg opened this issue 8 years ago • 1 comments

when trying to run the example python2.7 main.py --driver=local --method=GPEIOptChooser --method-args=noiseless=1 ../examples/braninpy/config.pb

Have removed and reinstalled python2.7-protobuf, protobuf, you name it (note on my machine, python3 is the default, but results in an error if I just try to use it instead, looks like Spearmint is python2.7)

Any ideas?

dinosg avatar Jan 25 '17 16:01 dinosg

try using virtualenvs with python2.7 http://docs.python-guide.org/en/latest/dev/virtualenvs/

$ pip install virtualenv $ source venv/bin/activate $ pip install protobuf

run your tests

younes-abid avatar Mar 15 '17 12:03 younes-abid