ImportError: DLL load failed with error code 3221225501

I installed Rasa and I get the error “ImportError: DLL load failed with error code 3221225501” when I issue the command: “rasa init”. I think it has to do with the fact that my CPU is old and does not support AVX instructions (neede with Tensorflow >=1.16). Also my GPU is old and does not support CUDA. Does anyone know what this problem might be about? Is there a way to run Rasa with lower version of Tensorflow (i.e. 1.15)? I installed Tensorflow 1.15 but no luck. I could not find in the Rasa manuals the minimum specs regarding Tensorflow.

My installation currently has Python 3.7.7, PIP 19.2.3 and I am running on Windows 7 SP1

The complete error log is:

(venv) C:\venv>rasa init Traceback (most recent call last): File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_inter nal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_inter nal.py”, line 24, in swig_import_helper _mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, descript ion) File “C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\imp.py”, li ne 242, in load_module return load_dynamic(name, filename, file) File “C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\imp.py”, li ne 342, in load_dynamic return _load(spec) ImportError: DLL load failed with error code 3221225501

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\venv\Scripts\rasa.exe_main.py", line 9, in File "c:\venv\lib\site-packages\rasa_main.py", line 82, in main set_log_level(log_level) File “c:\venv\lib\site-packages\rasa\utils\common.py”, line 71, in set_log_lev el update_tensorflow_log_level() File “c:\venv\lib\site-packages\rasa\utils\common.py”, line 112, in update_ten sorflow_log_level import tensorflow as tf File “c:\venv\lib\site-packages\tensorflow_init_.py”, line 99, in from tensorflow_core import * File “c:\venv\lib\site-packages\tensorflow_core_init_.py”, line 28, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-im port File “c:\venv\lib\site-packages\tensorflow_init_.py”, line 50, in __getattr __ module = self.load() File "c:\venv\lib\site-packages\tensorflow_init.py", line 44, in _load module = importlib.import_module(self.name) File "C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\importlib_ init.py", line 127, in import_module return _bootstrap.gcd_import(name[level:], package, level) File "c:\venv\lib\site-packages\tensorflow_core\python_init.py", line 49, in from tensorflow.python import pywrap_tensorflow File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_inter nal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “c:\venv\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_inter nal.py”, line 24, in swig_import_helper _mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, descript ion) File “C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\imp.py”, li ne 242, in load_module return load_dynamic(name, filename, file) File “C:\Users\netronio\AppData\Local\Programs\Python\Python37\lib\imp.py”, li ne 342, in load_dynamic return _load(spec) ImportError: DLL load failed with error code 3221225501

Failed to load the native TensorFlow runtime.

See Build and install error messages  |  TensorFlow

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

(venv) C:\venv>

hi @gitBitHubNet - welcome to the forum!

This definitely looks like a tensorflow installation issue. The AVX instructions are usually just a warning you can ignore.

I’m not an expert on Windows but if you look on youtube there are a bunch of tutorial videos about installing Rasa on windows machines. Maybe one of those can help?

@gitBitHubNet - Were u able to solve the issue? am also facing the same issue.