-
Notifications
You must be signed in to change notification settings - Fork 335
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
ImportError: No module named spearmint #66
Comments
I ran into the same issue (also anaconda on windows.) It seems the code is installed to site-packages directly, not in a folder called spearmint:
As a workaround I created a "spearmint" directory in site-packages and moved all these files there, and created an empty init.py. It appears to solve the missing spearmint issue but now I'm running into issues with scipy.weave not being found (apparently weave is now separate from scipy, maybe this can be resolved with a downgrade.) |
i seemed to fix this by moving the setup.py up a directory to ./spearmint, and editing the packages line in setup.py to:
|
Hi,
I use the anaconda2 in windows. I have installed all dependencies and succeed to install the package by executing :
python setup.py install
But when i tried to test the model by typing:
python main.py --driver=local --method=GPEIOptChooser --method-args=noiseless=1 ../examples/braninpy/config.pb
I met an error like :
setting up signal handler...
Using experiment configuration: ../examples/braninpy/config.pb
experiment dir: C:\Users\tianjinzi gao\Bayesian optimization\spearmint\spearmint\examples\braninpy
Traceback (most recent call last):
File "main.py", line 329, in
main()
File "main.py", line 164, in main
module = importlib.import_module('chooser.' + options.chooser_module)
File "C:\Anaconda2\lib\importlib_init_.py", line 37, in import_module
import(name)
File "C:\Users\tianjinzi gao\Bayesian optimization\spearmint\spearmint\spearmint\chooser\GPEIOptChooser.py", line 23, in
from spearmint import gp
ImportError: No module named spearmint
I tried to add the spearmint subdirectory in the PYTHONPATH by adding a .pth file containing the path of spearmint subdirectory in the $HOME/path/to/anaconda/lib/pythonX.X/site-packages .
However, there is always this error.
The text was updated successfully, but these errors were encountered: