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

Keras Not Found #499

Closed
etrauger opened this issue Aug 7, 2018 · 1 comment
Closed

Keras Not Found #499

etrauger opened this issue Aug 7, 2018 · 1 comment

Comments

@etrauger
Copy link

etrauger commented Aug 7, 2018

I am sure I am making a relatively simple mistake having to do with how my environment is set up. In running relatively simple test code, I get the following error:

Using TensorFlow backend.
Error: Python module keras was not found.

Detected Python configuration:

python:         C:\Users\**\AppData\Local\Continuum\anaconda3\envs\r-tensorflow\python.exe
libpython:      C:/Users/**/AppData/Local/Continuum/anaconda3/envs/r-tensorflow/python36.dll
pythonhome:     C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1
version:        3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\numpy
numpy_version:  1.14.3
keras:          C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\keras\__init__.p

python versions found: 
 C:\Users\**\AppData\Local\Continuum\anaconda3\envs\r-tensorflow\python.exe
 C:\Users\**\AppData\Local\Programs\Python\Python35\python.exe
 C:\Users\**\AppData\Local\Programs\Python\Python35\\python.exe
 C:\Users\**\AppData\Local\CONTI

After running a few diagnostics...

> reticulate::py_discover_config("keras")
python:         C:\Users\**\AppData\Local\Continuum\anaconda3\envs\r-tensorflow\python.exe
libpython:      C:/Users/**/AppData/Local/Continuum/anaconda3/envs/r-tensorflow/python36.dll
pythonhome:     C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1
version:        3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\numpy
numpy_version:  1.14.3
keras:          C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\keras\__init__.p

python versions found: 
 C:\Users\**\AppData\Local\Continuum\anaconda3\envs\r-tensorflow\python.exe
 C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\python.exe
 C:\Users\**\AppData\Local\Programs\Python\Python35\\python.exe
 C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\python.exe
 C:\Users\**\AppData\Local\Programs\Python\PYTHON~1\\python.exe
 C:\Users\**\AppData\Local\Continuum\anaconda3\python.exe
> reticulate::py_discover_config("tensorflow")
python:         C:\Users\**\AppData\Local\Continuum\anaconda3\envs\r-tensorflow\python.exe
libpython:      C:/Users/**/AppData/Local/Continuum/anaconda3/envs/r-tensorflow/python36.dll
pythonhome:     C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1
version:        3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)]
Architecture:   64bit
numpy:          C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\numpy
numpy_version:  1.14.3
tensorflow:     C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\lib\site-packages\tensorflow\__init__.p

python versions found: 
 C:\Users\**\AppData\Local\Continuum\anaconda3\envs\r-tensorflow\python.exe
 C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\envs\R-TENS~1\python.exe
 C:\Users\**\AppData\Local\Programs\Python\Python35\\python.exe
 C:\Users\**\AppData\Local\CONTIN~1\ANACON~1\python.exe
 C:\Users\**\AppData\Local\Programs\Python\PYTHON~1\\python.exe
 C:\Users\**\AppData\Local\Continuum\anaconda3\python.exe

I believe my issue may be similar to the issue brought up on this page but I am not sure how the problem was actually solved.

@jjallaire
Copy link
Member

For some reason Keras isn't loadable (this could be for many different reasons). To get a better error message try this:

library(keras)
reticulate::py_run_string("import keras")

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