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

Tensorflow Failed to importy at RunTime #239

Closed
Tulsani opened this issue Mar 17, 2020 · 3 comments
Closed

Tensorflow Failed to importy at RunTime #239

Tulsani opened this issue Mar 17, 2020 · 3 comments

Comments

@Tulsani
Copy link

Tulsani commented Mar 17, 2020

Installed Tensoflow-gpu on Windows , gives the the following error when it suggested tensorflow installed successfully
@tensorflow
Please help out.

`>>> import tensorflow
Traceback (most recent call last):
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\RIBU\AppData\Local\Programs\Python\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\RIBU\AppData\Local\Programs\Python\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_init_.py", line 101, in
from tensorflow_core import *
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_init
.py", line 50, in getattr
module = self.load()
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\RIBU\AppData\Local\Programs\Python\Python37\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python_init
.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\RIBU\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\RIBU\AppData\Local\Programs\Python\Python37\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\RIBU\AppData\Local\Programs\Python\Python37\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.`

@ndjensen
Copy link
Member

This appears to be a problem with your environment and tensorflow, not Jep. If you go to the link tensorflow provided, they have some help for that exact error message.

tensorflow/tensorflow#22512
tensorflow/tensorflow#22794

@Tulsani
Copy link
Author

Tulsani commented Apr 3, 2020

Thanks a lot for your help, using the link I was able to figure out the problem. Thanks !!!

@Tulsani Tulsani closed this as completed Apr 3, 2020
@avinashmatani
Copy link

import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow\python_init
.py", line 40, in
from tensorflow.python.eager import context
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow\python\eager\context.py", line 35, in
from tensorflow.python import pywrap_tfe
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Avinash Matani\Anaconda3\envs\project2\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

######Already installed tensorflow.
Got this error while importing tensorflow, no idea how to proceed next. Can anyone please help me with the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants