# ImportError: DLL load failed: A dynamic link library (DLL) initialization routin e failed

**URL:** <https://forum.rasa.com/t/importerror-dll-load-failed-a-dynamic-link-library-dll-initialization-routin-e-failed/24865>\
**Category:** Rasa Open Source\
**Created:** [February 16, 2020, 6:24pm UTC](https://forum.rasa.com/t/importerror-dll-load-failed-a-dynamic-link-library-dll-initialization-routin-e-failed/24865 "2020-02-16T18:24:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NithinAIML](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nithinaiml/32/7176_2.png) [@NithinAIML](https://forum.rasa.com/u/NithinAIML)\
**Post date:** [February 16, 2020, 6:24pm UTC](https://forum.rasa.com/t/importerror-dll-load-failed-a-dynamic-link-library-dll-initialization-routin-e-failed/24865/1 "2020-02-16T18:24:44Z")

</div>

HI Rasa Research Fellows and Followers,

I tried with every option to install rasa like tried installing by anaconda env and with python virtual env as well.

Ended up with DLL load failed: A dynamic link library (DLL) initialization routine failed.

When i searched for the above issue in google i got the answers like uninstall tensor flow and install tensorflow 1.15.0, so tried with that no luck. Some suggestions shows to uninstall TensorFlow and install using Conda tried with that as well no luck.

I would like to know what might be the reason for this issue. Below are the details of my environment and log as well.

Windows Server 2012 R2 Standard Evaluation Processor: Intel® Xeon® CPU, 64-bit Operating System.

Python Env: 3.7.5 TensorFlow = 1.15.0 TensorFlow Board = 1.15.0 TensorFlow-CPU = 1.15.0

Log… (bot) C:\Users\nithinb\Desktop\chatbot\>rasa Traceback (most recent call last): File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow.py”, line 58, in from tensorflow.python.pywrap\_tensorflow\_internal import \* File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow\_internal.py”, line 28, in \_pywrap\_tensorflow\_internal = swig\_import\_helper() File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow\_internal.py”, line 24, in swig\_import \_helper \_mod = imp.load\_module(’\_pywrap\_tensorflow\_internal’, fp, pathname, descript ion) File “c:\users\nithinb\appdata\local\programs\python\python37\lib\imp.py”, lin e 242, in load\_module return load\_dynamic(name, filename, file) File “c:\users\nithinb\appdata\local\programs\python\python37\lib\imp.py”, lin e 342, in load\_dynamic return \_load(spec) ImportError: DLL load failed: A dynamic link library (DLL) initialization routin e failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “c:\users\nithinb\appdata\local\programs\python\python37\lib\runpy.py”, l ine 193, in _run\_module\_as\_main “ **main** ”, mod\_spec) File “c:\users\nithinb\appdata\local\programs\python\python37\lib\runpy.py”, l ine 85, in run\_code exec(code, run\_globals) File "C:\Users\nithinb\AppData\Local\Programs\Python\Python37\Scripts\rasa.exe \_main.py", line 7, in File "c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\rasa\_main_.py", line 69, in main set\_log\_level(log\_level) File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\rasa\utils\common.py”, line 71, in set\_log\_level update\_tensorflow\_log\_level() File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\rasa\utils\common.py”, line 111, in update\_tensorflow\_log\_level import tensorflow as tf File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\ __init_\_.py”, line 99, in from tensorflow\_core import \* File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\__ init_\_.py”, line 28, in from tensorflow.python import pywrap\_tensorflow # pylint: disable=unused-im port File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\__init_\_.py”, line 50, in **getattr** module = self._load() File "c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_init_.py", line 44, in _load module = importlib.import\_module(self. **name** ) File "c:\users\nithinb\appdata\local\programs\python\python37\lib\importlib\_ init_\_.py", line 127, in import\_module return \_bootstrap._gcd\_import(name[level:], package, level) File "c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\_init_.py", line 49, in from tensorflow.python import pywrap\_tensorflow File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow.py”, line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow.py”, line 58, in from tensorflow.python.pywrap\_tensorflow\_internal import \* File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow\_internal.py”, line 28, in \_pywrap\_tensorflow\_internal = swig\_import\_helper() File “c:\users\nithinb\appdata\local\programs\python\python37\lib\site-package s\tensorflow\_core\python\pywrap\_tensorflow\_internal.py”, line 24, in swig\_import \_helper \_mod = imp.load\_module(’\_pywrap\_tensorflow\_internal’, fp, pathname, descript ion) File “c:\users\nithinb\appdata\local\programs\python\python37\lib\imp.py”, lin e 242, in load\_module return load\_dynamic(name, filename, file) File “c:\users\nithinb\appdata\local\programs\python\python37\lib\imp.py”, lin e 342, in load\_dynamic return \_load(spec) ImportError: DLL load failed: A dynamic link library (DLL) initialization routin e failed.

Failed to load the native TensorFlow runtime.

See [Build and install error messages &nbsp;|&nbsp; TensorFlow](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.

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [February 17, 2020, 5:34am UTC](https://forum.rasa.com/t/importerror-dll-load-failed-a-dynamic-link-library-dll-initialization-routin-e-failed/24865/2 "2020-02-17T05:34:22Z")

</div>

hey @NithinAIML, welcome to the community. Can you downgrade your python to version 3.6 and pip 20.0 and tensorflow 1.15.0

---

<div class="post-metadata">

**Author:** ![NithinAIML](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nithinaiml/32/7176_2.png) [@NithinAIML](https://forum.rasa.com/u/NithinAIML)\
**Post date:** [February 17, 2020, 1:26pm UTC](https://forum.rasa.com/t/importerror-dll-load-failed-a-dynamic-link-library-dll-initialization-routin-e-failed/24865/3 "2020-02-17T13:26:11Z")

</div>

Hi Jitesh,

Thanks for the reply. I tried it but not able to get succeeded and tried without conda as well still i see the same issue. I would like to know that does Rasa supports installation of Rasa on windows server 2012 standard evaluation… If yes what is the procedure/steps for installation, If no what would be the next steps that suggests.@Juste I would be really happy, If i get some help from you.

---

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.rasa.com/u/Uli)\
**Post date:** [July 26, 2020, 12:45pm UTC](https://forum.rasa.com/t/importerror-dll-load-failed-a-dynamic-link-library-dll-initialization-routin-e-failed/24865/4 "2020-07-26T12:45:17Z")

</div>

Did anybody succeed with this? It seems the same error applies also with newer versions of Rasa-X and tensorflow 2.0.

Thank you, Uli
