Error on launch: Failed to load the native TensorFlow runtime

Installing and setting up FaceSwap


Forum rules

Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.

Locked
User avatar
thegreenzebra
Posts: 2
Joined: Thu Oct 24, 2019 6:46 pm

Error on launch: Failed to load the native TensorFlow runtime

Post by thegreenzebra »

I get this error on launch:

Code: Select all

10/24/2019 20:03:40 INFO     Log level set to: INFO
10/24/2019 20:03:46 ERROR    There was an error importing Tensorflow. This is most likely because you do not have TensorFlow installed, or you are trying to run tensorflow-gpu on a system without an Nvidia graphics card. Original import error: Traceback (most recent call last):
10/24/2019 20:03:46 ERROR      File "C:\Users\Lenovo\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
10/24/2019 20:03:46 ERROR        from tensorflow.python.pywrap_tensorflow_internal import *
10/24/2019 20:03:46 ERROR      File "C:\Users\Lenovo\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
10/24/2019 20:03:46 ERROR        _pywrap_tensorflow_internal = swig_import_helper()
10/24/2019 20:03:46 ERROR      File "C:\Users\Lenovo\AppData\Roaming\Python\Python36\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
10/24/2019 20:03:46 ERROR        _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
10/24/2019 20:03:46 ERROR      File "C:\Users\Lenovo\MiniConda3\envs\faceswap\lib\imp.py", line 243, in load_module
10/24/2019 20:03:46 ERROR        return load_dynamic(name, filename, file)
10/24/2019 20:03:46 ERROR      File "C:\Users\Lenovo\MiniConda3\envs\faceswap\lib\imp.py", line 343, in load_dynamic
10/24/2019 20:03:46 ERROR        return _load(spec)
10/24/2019 20:03:46 ERROR    ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
10/24/2019 20:03:46 ERROR
10/24/2019 20:03:46 ERROR
10/24/2019 20:03:46 ERROR    Failed to load the native TensorFlow runtime.
10/24/2019 20:03:46 ERROR
10/24/2019 20:03:46 ERROR    See https://www.tensorflow.org/install/errors

I tried changing protobuf versions, but I returned it to the newest one at the end.

Last edited by bryanlyon on Fri Oct 25, 2019 12:05 am, edited 1 time in total.
Reason: Make Title representative of problem.

User avatar
torzdf
Posts: 1433
Joined: Fri Jul 12, 2019 12:53 am
Answers: 125
Has thanked: 47 times
Been thanked: 278 times

Re: Error on launch

Post by torzdf »

This looks like a Tensorflow issue....

I would delete the faceswap folder, uninstall miniconda 3 then try running the installer again....

If you still have issues, so this FAQ:
app.php/faqpage#f1r1

My word is final


User avatar
thegreenzebra
Posts: 2
Joined: Thu Oct 24, 2019 6:46 pm

Re: Error on launch

Post by thegreenzebra »

torzdf wrote: Thu Oct 24, 2019 7:35 pm

This looks like a Tensorflow issue....

I would delete the faceswap folder, uninstall miniconda 3 then try running the installer again....

If you still have issues, so this FAQ:
app.php/faqpage#f1r1

No, the error is still here. (Although I haven't uninstalled git.)


User avatar
torzdf
Posts: 1433
Joined: Fri Jul 12, 2019 12:53 am
Answers: 125
Has thanked: 47 times
Been thanked: 278 times

Re: Error on launch

Post by torzdf »

In my opinion, the most likely cause of this is a conflict with an alternative python version installed Tensorflow. If you have cleared out everything as per the FAQ point (i.e. all existing python installs and temp folders) and are still getting the error, then you're going to need to find support on a Tensorflow based forum, as it is unfortunately out of scope for Faceswap.

My word is final


Locked