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

After Installing Tensorflow when I TRy to verify I getting Follwing error can some body help on this #23506

Closed
AvinashTiwari opened this issue Nov 5, 2018 · 6 comments
Assignees
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower type:build/install Build and install issues

Comments

@AvinashTiwari
Copy link

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
    NO custom code or Module

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    Windows 8.1 (64 bit)

  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
    No mobile device

  • TensorFlow installed from (source or binary):
    binary

  • TensorFlow version (use command below):

    pip install tensorflow
    pip3 install tensorflow
    Currently default comes as tensorflow
    C:\Phyton>pip3 show tensorflow
    Name: tensorflow
    Version: 1.11.0
    Summary: TensorFlow is an open source machine learning framework for everyone.
    Home-page: https://www.tensorflow.org/
    Author: Google Inc.
    Author-email: opensource@google.com
    License: Apache 2.0
    Location: c:\users\avinash.t\anaconda3\lib\site-packages
    Requires: termcolor, astor, tensorboard, keras-applications, numpy, grpcio, whee
    l, keras-preprocessing, setuptools, six, protobuf, gast, absl-py
    Required-by:

  • Python version:
    3.6.7

  • Bazel version (if compiling from source):
    No compilation used

  • GCC/Compiler version (if compiling from source):
    No compilation used

  • CUDA/cuDNN version:
    No CUDA

  • GPU model and memory:
    No GPU

You can collect some of this information using our environment capture script
You can also obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Version is :- 1.11
When i execute the above command following error occurs

Failed to load the native TensorFlow runtime.

Describe the current behavior
LOG is Posted
Describe the expected behavior

Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.

Other info / logs
C:\Users\avinash.t\Anaconda3>python
Python 3.6.7 |Anaconda, Inc.| (default, Oct 28 2018, 19:44:12) [MSC v.1915 64 bi
t (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensor
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'tensor'
import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap_
tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap_
tensorflow_internal.py", line 28, in
pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap

tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\avinash.t\Anaconda3\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\avinash.t\Anaconda3\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routin
e failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow_init_.py",
line 22, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-im
port
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python_init
.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap

tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap_
tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap_
tensorflow_internal.py", line 28, in
pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap

tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\avinash.t\Anaconda3\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\avinash.t\Anaconda3\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routin
e failed.

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_probl
ems

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

@Kalevera
Copy link

Kalevera commented Nov 5, 2018

I'm getting the same error after migrating to Tensorflow 1.11 e cwpt I'm pretty sure my error is related to cuDNN64_90.dll not being found (I'm on cuFDNN64_91.dll)

You might try down grading Tensorflow back to 1.5 or 1.7

@AvinashTiwari
Copy link
Author

C:\Users\avinash.t>python
Python 3.6.7 |Anaconda, Inc.| (default, Oct 28 2018, 19:44:12) [MSC v.1915 64 b
t (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\avinash.t\Anaconda3\lib\importlib_init_.py", line 126, in i
port_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routi
e failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow_internal.py", line 17, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\avinash.t\Anaconda3\lib\importlib_init
.py", line 126, in i
port_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow_init_.py",
line 24, in
from tensorflow.python import * # pylint: disable=redefined-builtin
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python__init
.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\avinash.t\Anaconda3\lib\importlib_init
.py", line 126, in i
port_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 955, in _find_and_load_unlocked
File "", line 658, in _load_unlocked
File "", line 571, in module_from_spec
File "", line 922, in create_module
File "", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routi
e failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow_internal.py", line 17, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\avinash.t\Anaconda3\lib\site-packages\tensorflow\python\pywrap
tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('pywrap_tensorflow_internal')
File "C:\Users\avinash.t\Anaconda3\lib\importlib_init
.py", line 126, in i
port_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_prob
ems

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

This is for tensorflow 1.7.0

@AvinashTiwari
Copy link
Author

It worked with tensoflow == 1.5
C:\Users\avinash.t>python
Python 3.6.7 |Anaconda, Inc.| (default, Oct 28 2018, 19:44:12) [MSC v.1915 64 bi
t (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
print(tf.reduce_sum(tf.random_normal([1000, 1000])))
Tensor("Sum:0", shape=(), dtype=float32)

@Kalevera
Copy link

Kalevera commented Nov 5, 2018

@mrry what dll's is TF1.5 looking for and TF1.7?

Also built-in self check functions not returning correct dll codes or files that are missing when using TF1.11

@ymodak ymodak added the type:build/install Build and install issues label Nov 6, 2018
@Harshini-Gadige Harshini-Gadige added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Nov 8, 2018
@mrry
Copy link
Contributor

mrry commented Sep 27, 2019

The self-check functions are once again available in the latest versions of TensorFlow (1.15 / 2.0), so please try again with a more recent version, and open a new issue if they don't work.

@mrry mrry closed this as completed Sep 27, 2019
@tensorflow-bot
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

5 participants