Rasa X installation on Windows

Hi all,

I had created video on how to setup Rasa X on windows 10 using virtual environment, please do check it out:

Thanks :slight_smile:

7 Likes

@JiteshGaikwad thanks for sharing

Welcome @Nishet

Continuing the discussion from Rasa X installation on Windows:

I am new to Rasa can you tell me which version of python I should install.

python 3.6 is preferable

I have installed python 3.6.7(64-bit) and I am following your video when I am running

rasa init --no-prompt

I am facing following issue can you help me with this?

(env) E:\ims\Rasa> (env) E:\ims\Rasa> (env) E:\ims\Rasa> (env) E:\ims\Rasa>rasa init --no-prompt Traceback (most recent call last): File "e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py ", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow_in ternal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow_in ternal.py”, line 24, in swig_import_helper _mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, descript ion) File “e:\ims\rasa\env\lib\imp.py”, line 243, in load_module return load_dynamic(name, filename, file) File “e:\ims\rasa\env\lib\imp.py”, line 343, in load_dynamic return _load(spec) ImportError: DLL load failed with error code -1073741795

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “c:\users\1\appdata\local\programs\python\python36\Lib\runpy.py”, l ine 193, in run_module_as_main “main”, mod_spec) File “c:\users\1\appdata\local\programs\python\python36\Lib\runpy.py”, l ine 85, in run_code exec(code, run_globals) File "E:\ims\Rasa\env\Scripts\rasa.exe_main.py", line 9, in File "e:\ims\rasa\env\lib\site-packages\rasa_main.py", line 66, in main set_log_level(log_level) File “e:\ims\rasa\env\lib\site-packages\rasa\utils\common.py”, line 82, in set log_level update_tensorflow_log_level() File “e:\ims\rasa\env\lib\site-packages\rasa\utils\common.py”, line 101, in up date_tensorflow_log_level import tensorflow as tf File "e:\ims\rasa\env\lib\site-packages\tensorflow_init.py", line 24, in < module> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-im port File “e:\ims\rasa\env\lib\site-packages\tensorflow\python_init_.py”, line 4 9, in from tensorflow.python import pywrap_tensorflow File "e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py ", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow.py ", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow_in ternal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “e:\ims\rasa\env\lib\site-packages\tensorflow\python\pywrap_tensorflow_in ternal.py”, line 24, in swig_import_helper _mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, descript ion) File “e:\ims\rasa\env\lib\imp.py”, line 243, in load_module return load_dynamic(name, filename, file) File “e:\ims\rasa\env\lib\imp.py”, line 343, in load_dynamic return _load(spec) ImportError: DLL load failed with error code -1073741795

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.

(env) E:\ims\Rasa>

hi @prashant Make sure the Microsoft VC++ Compiler is installed, http://rasa.com/docs/rasa/user-guide/installation/#windows-prerequisites

I have it installed and still getting a similar problem. Was this resolved in the end?

rasa init

Traceback (most recent call last): File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description) File “c:\users\yani\appdata\local\programs\python\python36\lib\imp.py”, line 243, in load_module return load_dynamic(name, filename, file) File “c:\users\yani\appdata\local\programs\python\python36\lib\imp.py”, line 343, in load_dynamic return _load(spec) 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 “C:\Users\Yani\AppData\Local\Programs\Python\Python36\Scripts\rasa-script.py”, line 11, in load_entry_point(‘rasa’, ‘console_scripts’, ‘rasa’)() File “c:\trabajo\yasabe\rasa\rasa\rasa_main_.py”, line 66, in main set_log_level(log_level) File “c:\trabajo\yasabe\rasa\rasa\rasa\utils\common.py”, line 82, in set_log_level update_tensorflow_log_level() File “c:\trabajo\yasabe\rasa\rasa\rasa\utils\common.py”, line 101, in update_tensorflow_log_level import tensorflow as tf File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow_init_.py”, line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python_init_.py”, line 49, in from tensorflow.python import pywrap_tensorflow File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “c:\users\yani\appdata\local\programs\python\python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper _mod = imp.load_module(‘_pywrap_tensorflow_internal’, fp, pathname, description) File “c:\users\yani\appdata\local\programs\python\python36\lib\imp.py”, line 243, in load_module return load_dynamic(name, filename, file) File “c:\users\yani\appdata\local\programs\python\python36\lib\imp.py”, line 343, in load_dynamic return _load(spec) ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

Failed to load the native TensorFlow runtime.

See Crie e instale mensagens de erro  |  TensorFlow

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

@ jgaya --> Did you find a solution? Have the same problem!

Please share solution if anyone found.

@jgaya u must install visual studio and then create separate env for rasa if you want ,and then uninstall tensorflow and then again try to install rasa. If possible then try to install in cmd as a administrator.and let me know.

Rasa need´s Tensorflow, behind the Tensorflow is following Hardwarerequirement.

When I debug the Tensorpackage I get follwing errors:

  • TensorFlow is installed at: C:\Users\PFDO\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow Loaded ‘main

  • Could not load ‘nvcuda.dll’. The GPU version of TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Typically it is installed in ‘C:\Windows\System32’. If it is not present, ensure that you have a CUDA-capable GPU with the correct driver installed.

  • Could not load ‘cudnn64_5.dll’. The GPU version of TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. Note that installing cuDNN is a separate step from installing CUDA, and it is often found in a different directory from the CUDA DLLs. You may install the necessary DLL by downloading cuDNN 5.1 from this URL: https://developer.nvidia.com/cudnn

Is it possible to run tensor without the Hardwarerequirements?

I think it´s the same problem of @jgaya

Thx

If someone is having problem at the step of building ujson, please try the following steps:

  • Install - Install Visual C++ 2015 Build Tools

  • Copy these files rc.exe & rcdll.dll from C:\Program Files (x86)\Windows Kits\8.1\bin\x86 to C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin In newer Windows these files might also be in the highest version: C:\Program Files (x86)\Windows Kits\10\bin\10.0.VERSION\x86

And now try install again.

Please this blog. To install RASA on your windows system smoothly. Install Rasa on windows

Traceback (most recent call last): File “c:\users\aleesha\appdata\local\programs\python\python36\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\users\aleesha\appdata\local\programs\python\python36\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Users\Aleesha\AppData\Local\Programs\Python\Python36\Scripts\rasa.exe_main.py", line 5, in File "c:\users\aleesha\appdata\local\programs\python\python36\lib\site-packages\rasa_init.py", line 8, in from rasa.run import run File “c:\users\aleesha\appdata\local\programs\python\python36\lib\site-packages\rasa\run.py”, line 5, in from rasa.cli.utils import print_warning File “c:\users\aleesha\appdata\local\programs\python\python36\lib\site-packages\rasa\cli\utils.py”, line 11, in from typing import NoReturn ImportError: cannot import name ‘NoReturn’

i have this error on rasa init command? anyone please help me to resolve