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. #26634

Closed
peyifyp opened this issue Mar 13, 2019 · 10 comments
Closed

ImportError: DLL load failed: The specified module could not be found. #26634

peyifyp opened this issue Mar 13, 2019 · 10 comments
Assignees
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower subtype:windows Windows Build/Installation Issues type:build/install Build and install issues

Comments

@peyifyp
Copy link

peyifyp commented Mar 13, 2019

I have this error, how can i solve this problem?

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 "generate_tfrecord.py", line 17, in
import tensorflow as tf
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow_init_.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python_init_.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\User\Anaconda3\envs\tensorflow1\lib\imp.py", line 343, 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.

@ymodak ymodak self-assigned this Mar 13, 2019
@ymodak ymodak added the type:build/install Build and install issues label Mar 13, 2019
@ymodak
Copy link
Contributor

ymodak commented Mar 13, 2019

Please provide following info:
System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
  • TensorFlow installed from (source or binary):
  • TensorFlow version:
  • Python version:
  • Installed using virtualenv? pip? conda?:
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version:
  • GPU model and memory:

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@ymodak ymodak added the stat:awaiting response Status - Awaiting response from author label Mar 13, 2019
@peyifyp
Copy link
Author

peyifyp commented Mar 15, 2019 via email

@ymodak
Copy link
Contributor

ymodak commented Mar 15, 2019

Thanks for providing the info. Did you add cuda to your path? Can you please attach a screenshot of added paths if added already?
Take a look at this windows setup guide for gpu support if haven't already.
You need to add sub folders: bin , include and lib to the path. Can you please try adding them as well?

@peyifyp
Copy link
Author

peyifyp commented Mar 15, 2019 via email

@peyifyp
Copy link
Author

peyifyp commented Mar 15, 2019 via email

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Mar 15, 2019
@ymodak
Copy link
Contributor

ymodak commented Mar 15, 2019

ah I see you are using cuda 9.0. TF 1.13.1 comes with pre built cuda 10.0 binaries. So please upgrade to cuda 10.0 and make sure to add path as well. You can download cuda 10.0 toolkit
Also take a look at https://github.com/jvishnuvardhan/Installing-TensorFlow-GPU-on-Windows-10-TF1.12
You can use cuda 10.0 instead of cuda 9.0 rest of the steps should be the same.

@ymodak ymodak added subtype:windows Windows Build/Installation Issues stat:awaiting response Status - Awaiting response from author labels Mar 15, 2019
@peyifyp
Copy link
Author

peyifyp commented Mar 16, 2019 via email

@tensorflowbutler tensorflowbutler removed the stat:awaiting response Status - Awaiting response from author label Mar 16, 2019
@ymodak
Copy link
Contributor

ymodak commented Mar 27, 2019

@peyifyp Were you able to install TF? Any updates yet.

@ymodak ymodak added the stat:awaiting tensorflower Status - Awaiting response from tensorflower label Mar 27, 2019
@ymodak
Copy link
Contributor

ymodak commented Apr 1, 2019

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

@ymodak ymodak closed this as completed Apr 1, 2019
@tensorflow-bot
Copy link

tensorflow-bot bot commented Apr 1, 2019

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 subtype:windows Windows Build/Installation Issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

3 participants