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

ImportError: DLL load failed: The specified module could not be found - while importing tensorflow #42372

Closed
sparachi1011 opened this issue Aug 14, 2020 · 6 comments
Assignees
Labels
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.2 Issues related to TF 2.2 type:build/install Build and install issues

Comments

@sparachi1011
Copy link

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

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary): pip install tensorflow
  • TensorFlow version:2.2
  • Python version: checked 3.6,3.7,3.8
  • Installed using virtualenv? pip? conda?: both pip and conda
  • Bazel version (if compiling from source): NA
  • GCC/Compiler version (if compiling from source): NA
  • CUDA/cuDNN version: NA
  • GPU model and memory: AMD Radeon(TM) Vega 8 Graphics

Describe the problem
facing the problem of module not found while loding DLL when importing tensorflow.
Tried with multiple options like python version, tensorflow versions etc.

is tesnorflow also supports ADM graphic drivers ?
Tensorflow issue

Provide the exact sequence of commands / steps that you executed before running into the problem
import tensorflow as tf

Any other info / logs

import tensorflow
Traceback (most recent call last):

File "", line 1, in
import tensorflow

File "C:\Users\SaiKoushik\Anaconda3\lib\site-packages\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as _module_util

File "C:\Users\SaiKoushik\Anaconda3\lib\site-packages\tensorflow\python_init_.py", line 40, in
from tensorflow.python.eager import context

File "C:\Users\SaiKoushik\Anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 35, in
from tensorflow.python import pywrap_tfe

File "C:\Users\SaiKoushik\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in
from tensorflow.python import pywrap_tensorflow

File "C:\Users\SaiKoushik\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in
raise ImportError(msg)

ImportError: Traceback (most recent call last):
File "C:\Users\SaiKoushik\Anaconda3\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.

@sparachi1011 sparachi1011 added the type:build/install Build and install issues label Aug 14, 2020
@Saduf2019 Saduf2019 assigned Saduf2019 and unassigned ravikyram Aug 17, 2020
@Saduf2019 Saduf2019 added subtype:windows Windows Build/Installation Issues TF 2.2 Issues related to TF 2.2 labels Aug 17, 2020
@Saduf2019
Copy link
Contributor

@sparachi1011
What is make/model of your cpu?
I suspect your cpu model does not support AVX instructions sets.See hardware requirements
Make sure to download the latest microsoft visual c++ redistributable from here.
.Also, please follow the instructions from to install from Tensorflow website.

Please, check Your CPU/Python is on 32 bits?Please, refer #36167 and see if it helps you.Please, refer similar issues #36167 #36151 #36138 #36054 #36045 #36020 #36003 #35988 #35903 #35880 #35865 #35805 #35789 #35773 #35772 #35767 #35766 #35749 #35721 #35618 #35204
Thanks!

@Saduf2019 Saduf2019 added the stat:awaiting response Status - Awaiting response from author label Aug 17, 2020
@sparachi1011
Copy link
Author

sparachi1011 commented Aug 17, 2020

hi @Saduf2019 ,
What is make/model of your cpu: Dell Inspiron 15 5000 series,
I suspect your cpu model does not support AVX instructions sets:: it support, its a AMD Ryzen 5 series(latest version from AMD family)
Make sure to download the latest microsoft visual c++:: yes i have installed MS Visual 2019.

I can able to install tensorflow 1.15 and keras 2.0 but unable to use the upgraded versions.
Please, check Your CPU/Python is on 32 bits?:: python in on 64bits.

processor details
VS 2019

@Saduf2019 Saduf2019 removed the stat:awaiting response Status - Awaiting response from author label Aug 18, 2020
@jvishnuvardhan
Copy link
Contributor

@sparachi1011 Few questions.

  1. did you notice the issue when you installed in virtualenv?
  2. were you able to install and import TF1.15 without any issue?

Can you please uninstall TF all versions, uninstall python all versions, restart comp/laptop, install python 3.7, install TF2.3 and then check whether you can import without any issue. Thanks!

@jvishnuvardhan jvishnuvardhan added the stat:awaiting response Status - Awaiting response from author label Aug 18, 2020
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler google-ml-butler bot added the stale This label marks the issue/pr stale - to be closed automatically if no activity label Aug 25, 2020
@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
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
stale This label marks the issue/pr stale - to be closed automatically if no activity stat:awaiting response Status - Awaiting response from author subtype:windows Windows Build/Installation Issues TF 2.2 Issues related to TF 2.2 type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants