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

import error with bson #23

Closed
twangnh opened this issue May 21, 2016 · 3 comments
Closed

import error with bson #23

twangnh opened this issue May 21, 2016 · 3 comments

Comments

@twangnh
Copy link

twangnh commented May 21, 2016

After I installed hyperas using'pip install hyperas', I run the example code of lstm, but it raise an error: 'ImportError: No module named bson', I then pip to intall bson, 'pip install bson', but it raise an error:
' Command "python setup.py egg_info" failed with error code 1 in c:\users\admi
ni~1\appdata\local\temp\pip-build-jx55yy\bson', can someone help me, thanks in advance.

@maxpumperla
Copy link
Owner

Hi, hyperopt seems to have problems with bson module. You could try to uninstall bson and then do pip install pymongo, which comes with its own version of bson.

@twangnh
Copy link
Author

twangnh commented May 22, 2016

Thank you! After I uninstalled bson and installed pymongo, the previous error have been solved, but a new one came up, the following is the error information:
`Unexpected error: <type 'exceptions.NameError'>
Traceback (most recent call last):

File "", line 1, in
runfile('C:/SciSoft/my_code/untitled0.py', wdir='C:/SciSoft/my_code')

File "C:\SciSoft\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 682, in runfile
execfile(filename, namespace)

File "C:\SciSoft\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 71, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)

File "C:/SciSoft/my_code/untitled0.py", line 78, in
trials=Trials())

File "C:\SciSoft\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\hyperas\optim.py", line 31, in minimize
best_run = base_minimizer(model, data, algo, max_evals, trials, rseed)

File "C:\SciSoft\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\hyperas\optim.py", line 96, in base_minimizer
from temp_model import keras_fmin_fnct, get_space

File "temp_model.py", line 8, in
spy_cfg.IPKernelApp.pylab_import_all = autoload_pylab_o

NameError: name 'autoload_pylab_o' is not defined`
BTW, I have a well established envirorment for keras and theano.

@twangnh
Copy link
Author

twangnh commented May 23, 2016

Please, help me, I'm really puzzeled.

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

2 participants