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

problems installing spearmint and testing the simple example #111

Open
jeremygoetz opened this issue Aug 9, 2017 · 8 comments
Open

problems installing spearmint and testing the simple example #111

jeremygoetz opened this issue Aug 9, 2017 · 8 comments

Comments

@jeremygoetz
Copy link

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
Copy link

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

@william-r-s
Copy link

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
Copy link

xiao-he commented Mar 28, 2018

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

@ascripter
Copy link

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
Copy link

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

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

@cwj006
Copy link

cwj006 commented Oct 19, 2020

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
Copy link

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
Copy link

ayat-khairy commented Feb 21, 2023

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

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

9 participants