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: A dynamic link library (DLL) initialization routine failed. #49

Open
Kay324 opened this issue Jul 4, 2021 · 0 comments

Comments

@Kay324
Copy link

Kay324 commented Jul 4, 2021

Whenever I try to run the load_weights.py file, I get this issue:
(tracker-cpu) C:\Users\deadp\yolov3_deepsort>python load_weights.py
Traceback (most recent call last):
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\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\deadp\anaconda3\envs\tracker-cpu\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "load_weights.py", line 4, in
from yolov3_tf2.models import YoloV3, YoloV3Tiny
File "C:\Users\deadp\yolov3_deepsort\yolov3_tf2\models.py", line 4, in
import tensorflow as tf
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_init_.py", line 98, in
from tensorflow_core import *
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core_init_.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_init
.py", line 50, in getattr
module = self.load()
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(self.name)
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core\python_init
.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\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\deadp\anaconda3\envs\tracker-cpu\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\deadp\anaconda3\envs\tracker-cpu\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

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.

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