Installation of Rasa X does not work

How can the following installation problem of Rasa X be solved?

I have created a new environment on anaconda, python version 3.6.13.

Further Information:

  • OS: Windows 10
  • Version Number: Rasa X

Moreover, I use the following code for installation:

pip install --use-deprecated=legacy-resolver rasa-x --extra-index-url https://pypi.rasa.com/simple

The following error appears every time:

ERROR: Command errored out with exit status 1: command: ‘C:\Users\gebele\Anaconda3\envs\chatbot\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\gebele\AppData\Local\Temp\pip-install-3i993lm3\ujson\setup.py’"’"’; file=’"’"‘C:\Users\gebele\AppData\Local\Temp\pip-install-3i993lm3\ujson\setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\gebele\AppData\Local\Temp\pip-record-90glg37t\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\gebele\Anaconda3\envs\chatbot\Include\ujson’ cwd: C:\Users\gebele\AppData\Local\Temp\pip-install-3i993lm3\ujson\

  • Complete output (5 lines):
  • running install
  • running build
  • running build_ext
  • building ‘ujson’ extension

error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: Microsoft C++ Build Tools - Visual Studio ----------------------------------------

ERROR: Command errored out with exit status 1: ‘C:\Users\gebele\Anaconda3\envs\chatbot\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\gebele\AppData\Local\Temp\pip-install-3i993lm3\ujson\setup.py’"’"’; file=’"’"‘C:\Users\gebele\AppData\Local\Temp\pip-install-3i993lm3\ujson\setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\gebele\AppData\Local\Temp\pip-record-90glg37t\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\gebele\Anaconda3\envs\chatbot\Include\ujson’ Check the logs for full command output.

Have you tried installing the latest Microsoft C++ build tools?

I have also tried to install the latest Microsoft C++ build tools. Unfortunatley, this didn’t work either.

The following error appears:

Building wheels for collected packages: ujson Building wheel for ujson (setup.py) … error ERROR: Command errored out with exit status 1: command: ‘C:\Users\gebele\Anaconda3\envs\initrasa\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’“‘C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson\setup.py’”’“‘; file=’”‘“‘C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson\setup.py’”’“';f = getattr(tokenize, '”‘“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d ‘C:\Users\gebele\AppData\Local\Temp\pip-wheel-8l16jvcx’ cwd: C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson
Complete output (14 lines): Warning: ‘classifiers’ should be a list, got type ‘filter’ running bdist_wheel running build running build_ext building ‘ujson’ extension creating build creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\python creating build\temp.win-amd64-3.7\Release\lib C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -IC:\Users\gebele\Anaconda3\envs\initrasa\include -IC:\Users\gebele\Anaconda3\envs\initrasa\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include” /Tc./python/ujson.c /Fobuild\temp.win-amd64-3.7\Release./python/ujson.obj -D_GNU_SOURCE ujson.c C:\Users\gebele\Anaconda3\envs\initrasa\include\pyconfig.h(59): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: “io.h”: No such file or directory error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe’ failed with exit status 2

ERROR: Failed building wheel for ujson Running setup.py clean for ujson Failed to build ujson Installing collected packages: kafka-python, ujson, rasa-x, pyjwt Attempting uninstall: kafka-python Found existing installation: kafka-python 2.0.2 Uninstalling kafka-python-2.0.2: Successfully uninstalled kafka-python-2.0.2 Attempting uninstall: ujson Found existing installation: ujson 4.0.2 Uninstalling ujson-4.0.2: Successfully uninstalled ujson-4.0.2 Running setup.py install for ujson … error ERROR: Command errored out with exit status 1: command: ‘C:\Users\gebele\Anaconda3\envs\initrasa\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’“‘C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson\setup.py’”’“‘; file=’”‘“‘C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson\setup.py’”’“';f = getattr(tokenize, '”‘“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ install --record ‘C:\Users\gebele\AppData\Local\Temp\pip-record-lxwxcsfn\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\gebele\Anaconda3\envs\initrasa\Include\ujson’ cwd: C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson
Complete output (14 lines): Warning: ‘classifiers’ should be a list, got type ‘filter’ running install running build running build_ext building ‘ujson’ extension creating build creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\python creating build\temp.win-amd64-3.7\Release\lib C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -IC:\Users\gebele\Anaconda3\envs\initrasa\include -IC:\Users\gebele\Anaconda3\envs\initrasa\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\include” /Tc./python/ujson.c /Fobuild\temp.win-amd64-3.7\Release./python/ujson.obj -D_GNU_SOURCE ujson.c C:\Users\gebele\Anaconda3\envs\initrasa\include\pyconfig.h(59): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: “io.h”: No such file or directory error: command ‘C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe’ failed with exit status 2 ---------------------------------------- Rolling back uninstall of ujson Moving to c:\users\gebele\anaconda3\envs\initrasa\lib\site-packages\ujson-4.0.2.dist-info
from c:\users\gebele\anaconda3\envs\initrasa\lib\site-packages~json-4.0.2.dist-info Moving to c:\users\gebele\anaconda3\envs\initrasa\lib\site-packages\ujson.cp37-win_amd64.pyd from C:\Users\gebele\AppData\Local\Temp\pip-uninstall-ilq0y1et\ujson.cp37-win_amd64.pyd ERROR: Command errored out with exit status 1: ‘C:\Users\gebele\Anaconda3\envs\initrasa\python.exe’ -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '”‘“‘C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson\setup.py’”’“‘; file=’”‘“‘C:\Users\gebele\AppData\Local\Temp\pip-install-r35wn8qb\ujson\setup.py’”’“';f = getattr(tokenize, '”‘“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record ‘C:\Users\gebele\AppData\Local\Temp\pip-record-lxwxcsfn\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\gebele\Anaconda3\envs\initrasa\Include\ujson’ Check the logs for full command output.

Does this help?