2020-05-03 02:01 PM
I have encountered error while executing validation on my first Keras model using XCUBE.AI extension. The error message below,
----------------------------------------------------------------------------------------------------------------------------------
Analyzing model
Neural Network Tools for STM32 v1.2.0 (AI tools v5.0.0)
TOOL ERROR: Traceback (most recent call last):
File "C:\Users\moham\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\5.0.0\Utilities\windows\tensorflow_core\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\moham\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\5.0.0\Utilities\windows\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\moham\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\5.0.0\Utilities\windows\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 242, in load_module
File "imp.py", line 342, in load_dynamic
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.
----------------------------------------------------------------------------------------------------------------------------------
I'm using
STMCubeMx version 5.6.1
XCUBE.AI version 5.0.0
I installed "microsoft Visual C++ 2015,2017,2019 Redistributable Update 3" as recommended in another thread.
Could you please support as I'm stuck with this error for 3 days now?
2020-05-04 12:28 AM
Are you on Windows 10 ? our generation machine is on Windows 10 and we don't support Windows 7 anymore.
Regards
Daniel
2020-05-04 08:20 AM
Hi Daniel,
Thanks for your reply.
Yes I'm using Windows 10.
2020-05-05 02:27 AM
According to this thread it is as you said a question of C++ redistributable version
In one comment is says: " please uninstall the latest Microsoft Visual C++ Redistributable for Visual Studio version if you install 2019 and before that
download Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 depending on your system either x64 or x86 on this website
https://support.microsoft.com/en-my/help/2977003/the-latest-supported-visual-c-downloads"
I wonder if it could also be some non English Windows issues, is your Windows in English ?
Sorry for not being of better help I have never seen this issue on our machines
Regards
Daniel