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 import issue #35772

Closed
arnabnag2000 opened this issue Jan 11, 2020 · 9 comments
Closed

Tensorflow import issue #35772

arnabnag2000 opened this issue Jan 11, 2020 · 9 comments
Assignees
Labels
stat:awaiting response Status - Awaiting response from author type:build/install Build and install issues

Comments

@arnabnag2000
Copy link

error code

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import *
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python_init_.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in
from google.protobuf import descriptor as _descriptor
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.

python version 3.6
tensorflow version 1.5(installed via pip)
visual studio c++ installed
using a 64 bit machine

@TyrionWarMage
Copy link

Are you sure, you installed the correct VisualC++ Redist? - see #35036 (comment)

@arnabnag2000
Copy link
Author

yes VisualC++ Redist is already installed

@oanush oanush self-assigned this Jan 13, 2020
@oanush oanush added the type:build/install Build and install issues label Jan 13, 2020
@oanush
Copy link

oanush commented Jan 13, 2020

@arnabnag2000 ,
I see that you are trying to install tf-1.5 version which is very old, please try installing latest version of TF like 1.15. Also follow the instruction from TensorFlow website. You can have a look on similar issue #22794 and #10033 . let us know if that helps. Looks like you need to add path for CUDA and CuDNN.Thanks!

@oanush oanush added the stat:awaiting response Status - Awaiting response from author label Jan 13, 2020
@arnabnag2000
Copy link
Author

arnabnag2000 commented Jan 13, 2020

installed tensorflow 1.15 and cuda and cudnn
and visual studio 2017

import tensorflow
2020-01-13 12:01:28.089835: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 99, in
from tensorflow_core import *
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core_init_.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init_.py", line 50, in getattr
module = self.load()
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python_init
.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\core\framework\graph_pb2.py", line 7, in
from google.protobuf import descriptor as _descriptor
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.

@oanush
Copy link

oanush commented Jan 13, 2020

installed tensorflow 1.15 and cuda and cudnn
and visual studio 2017

import tensorflow
2020-01-13 12:01:28.089835: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_100.dll
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow__init__.py", line 99, in
from tensorflow_core import *
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core__init__.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow__init__.py", line 50, in getattr
module = self.load()
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow__init
_.py", line 44, in load
module = importlib.import_module(self.name)
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\importlib__init
.py", line 126, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\python__init
.py", line 52, in
from tensorflow.core.framework.graph_pb2 import *
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow_core\core\framework\graph_pb2.py", line 7, in
from google.protobuf import descriptor as _descriptor
File "C:\Users\USER\AppData\Local\Programs\Python\Python36\lib\site-packages\google\protobuf\descriptor.py", line 47, in
from google.protobuf.pyext import _message
ImportError: DLL load failed: The specified procedure could not be found.

@arnabnag2000 ,
Is the issue resolved ?if no,mention CUDA and CuDNN versions.Thanks!

@arnabnag2000
Copy link
Author

no its not resolved
CUDA VS 10.0
CuDNN VS 7.64

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Jan 13, 2020
@oanush
Copy link

oanush commented Jan 21, 2020

@arnabnag2000 ,
Can you check the issue and let us know if its helped? Thanks!

@oanush oanush added the stat:awaiting response Status - Awaiting response from author label Jan 21, 2020
@oanush
Copy link

oanush commented Jan 27, 2020

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

@oanush oanush closed this as completed Jan 27, 2020
@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 response Status - Awaiting response from author type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants