HIPS / Spearmint

Spearmint Bayesian optimization codebase
Other
1.55k stars 328 forks source link

problems installing spearmint and testing the simple example #111

Open jeremygoetz opened 7 years ago

jeremygoetz commented 7 years ago

I am running on a red hat 7.... linux system.

This is the issue i get with mongod:

mongod --fork --logpath logfile --dbpath datadir about to fork child process, waiting until server is ready for connections. forked process: 9716 ERROR: child process failed, exited with error number 48

The issue running main.py

File "main.py", line 198, in from spearmint.utils.database.mongodb import MongoDB File "/home/jgoetz2/stm/Spearmint-master/spearmint/utils/database/mongodb.py", line 190, in from abstractdb import AbstractDB ImportError: No module named 'abstractdb' [2]+ Exit 1 nohup ipython STMBrainHidden1layerMichaelAdam1.py > /dev/null 2>&1 (wd: ~/stm) (wd now: ~/stm/Spearmint-master/spearmint) [jgoetz2@pyrochlore spearmint]$

daizhongxiang commented 7 years ago

I had the same issue when running main.py. It says no module named "abstractdb"

william-r-s commented 6 years ago

Had this issue, turns out to be because I was trying to run under python 3 instead of python 2. (Though for a new python 2 conda environment, I also had to install the weave module and rename all instances of scipy.weave to weave)

xiao-he commented 6 years ago

I am using python 2 but still have the same problem.

ascripter commented 6 years ago

Had the same issue with in python3 (and the weave-issue when I was still using python2)

If you upgrade the spearmint code using futurize, there is no more import error.

    pip3 install future
    futurize -0 -w /path/to/spearmint
MajidAbdolshah commented 5 years ago

I am using python 2 but still have the same problem.

I am also having the same issue using Python2.7.

cwj006 commented 3 years ago

Had the same issue with in python3 (and the weave-issue when I was still using python2)

If you upgrade the spearmint code using futurize, there is no more import error.

    pip3 install future
    futurize -0 -w /path/to/spearmint

It doesn't work for me.

Amir-Mansoori commented 3 years ago

Had the same issue with in python3 (and the weave-issue when I was still using python2)

If you upgrade the spearmint code using futurize, there is no more import error.

    pip3 install future
    futurize -0 -w /path/to/spearmint

I have the same problem with both python 2 and 3. This solution does not work for me.

ayat-khairy commented 1 year ago

Try changing the import AbstractDB line in spearmint/utils/database/mongodb.py to from spearmint.utils.database.abstractdb import AbstractDB