Keep getting an error on one of my machines

I cant full figure this issue out as I can run the exact same program on a different computer with out an Issue.

Process Process-1:
Traceback (most recent call last):
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\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 “imp.py”, line 243, in load_module
File “imp.py”, line 343, in load_dynamic
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 “multiprocessing\process.py”, line 258, in bootstrap
File “multiprocessing\process.py”, line 93, in run
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\DeepFaceLab\core\leras\device.py”, line 102, in get_tf_devices_proc
import tensorflow
File "Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_init
.py", line 102, in
from tensorflow_core import *
File "Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core_init
.py", line 28, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_init_.py”, line 50, in getattr
module = self.load()
File "Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_init
.py", line 44, in load
module = importlib.import_module(self.name)
File "importlib_init
.py", line 126, in import_module
File "Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core\python_init
.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File “Z:\Shared data\DeepFaceLab_DirectX12_internal\python-3.6.8\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 “imp.py”, line 243, in load_module
File “imp.py”, line 343, in load_dynamic
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime

@Clarence,

Welcome to the Tensorflow Forum!

You might be facing this issue because of the following reasons

  • You are running 32-bit Python or 32-bit OS
  • Your CPU does not support AVX instructions

Please take a look at the system requirements and check if you have the correct dependencies installed.

Thank you!