Rasa X installation issue

Hi guys,

I am new here and this is my first post. I would like to install Rasa X on my laptop but I have gotten some erros during the installation.

I have tried to install Rasa on my MacBook Pro. Also I have pip 19.3.1 installed and python 3.7.4 on my laptop. Could you please help me out guys?

Following the errors bellow.

Building wheels for collected packages: ujson Building wheel for ujson (setup.py) … error ERROR: Command errored out with exit status 1: command: /opt/anaconda3/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/setup.py’"’"’; file=’"’"’/private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-wheel-11s_jtrm --python-tag cp37 cwd: /private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/ Complete output (12 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.macosx-10.9-x86_64-3.7 creating build/temp.macosx-10.9-x86_64-3.7/python creating build/temp.macosx-10.9-x86_64-3.7/lib gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64 -I./python -I./lib -I/opt/anaconda3/include/python3.7m -c ./python/ujson.c -o build/temp.macosx-10.9-x86_64-3.7/./python/ujson.o -D_GNU_SOURCE xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command ‘gcc’ failed with exit status 1

ERROR: Failed building wheel for ujson Running setup.py clean for ujson Failed to build ujson Installing collected packages: smmap2, gitdb2, GitPython, humanfriendly, coloredlogs, ujson, sanic, sanic-plugins-framework, sanic-cors, rasa-sdk, twilio, tzlocal, apscheduler, pydot, rasa, isodate, setuptools-scm, Mako, python-editor, alembic, rasa-x Running setup.py install for ujson … error ERROR: Command errored out with exit status 1: command: /opt/anaconda3/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/setup.py’"’"’; file=’"’"’/private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-record-qrx90c7e/install-record.txt --single-version-externally-managed --compile cwd: /private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/ Complete output (12 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.macosx-10.9-x86_64-3.7 creating build/temp.macosx-10.9-x86_64-3.7/python creating build/temp.macosx-10.9-x86_64-3.7/lib gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/include -arch x86_64 -I/opt/anaconda3/include -arch x86_64 -I./python -I./lib -I/opt/anaconda3/include/python3.7m -c ./python/ujson.c -o build/temp.macosx-10.9-x86_64-3.7/./python/ujson.o -D_GNU_SOURCE xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command ‘gcc’ failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/anaconda3/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/setup.py’"’"’; file=’"’"’/private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-install-yv1qfgf0/ujson/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /private/var/folders/48/570lfdns33v3qj40s8srr0x80000gp/T/pip-record-qrx90c7e/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

Welcome to the forum. What is the command you are executing?

i got same error! i executed conda install rasa. the steps i did before in miniconda prompt:

  1. conda create -n rasa_envs
  2. conda activate rasa_envs
  3. conda install pip
  4. conda install python 5 conda install rasa

These look like step to install RASA … the original question is regarding Rasa X.

If you are facing issues/errors while installing RASA please share.

Yes, i got similar erro for RASA installation, not RASA X : - Updating importlib-metadata (1.1.3 -> 1.6.0)

  • Updating pyparsing (2.4.7 -> 2.4.6)
  • Updating pyrsistent (0.14.11 -> 0.16.0)
  • Installing pywin32 (227)
  • Installing requests-oauthlib (1.3.0)
  • Installing traitlets (4.3.3)
  • Installing ujson (1.35)

[EnvCommandError] Command [‘C:\Users\Lenovo\Miniconda3\envs\rasa_envs\Scripts\pip.exe’, ‘install’, ‘–no-deps’, ‘ujson==1.35’] errored with the following return code 1, and output: Collecting ujson==1.35 Using cached ujson-1.35.tar.gz (192 kB) Building wheels for collected packages: ujson Building wheel for ujson (setup.py): started Building wheel for ujson (setup.py): finished with status ‘error’ ERROR: Command errored out with exit status 1: command: ‘C:\Users\Lenovo\Miniconda3\envs\rasa_envs\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson\setup.py’"’"’; file=’"’"‘C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d ‘C:\Users\Lenovo\AppData\Local\Temp\pip-wheel-9tj41yr4’ cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson
Complete output (12 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 cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -IC:\Users\Lenovo\Miniconda3\envs\rasa_envs\include -IC:\Users\Lenovo\Miniconda3\envs\rasa_envs\include /Tc./python/ujson.c /Fobuild\temp.win-amd64-3.7\Release./python/ujson.obj -D_GNU_SOURCE error: command ‘cl.exe’ failed: No such file or directory

ERROR: Failed building wheel for ujson Running setup.py clean for ujson Failed to build ujson Installing collected packages: ujson Running setup.py install for ujson: started Running setup.py install for ujson: finished with status ‘error’ ERROR: Command errored out with exit status 1: command: ‘C:\Users\Lenovo\Miniconda3\envs\rasa_envs\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson\setup.py’"’"’; file=’"’"‘C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\Lenovo\AppData\Local\Temp\pip-record-b8rgsn_m\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\Lenovo\Miniconda3\envs\rasa_envs\Include\ujson’ cwd: C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson
Complete output (12 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 cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -IC:\Users\Lenovo\Miniconda3\envs\rasa_envs\include -IC:\Users\Lenovo\Miniconda3\envs\rasa_envs\include /Tc./python/ujson.c /Fobuild\temp.win-amd64-3.7\Release./python/ujson.obj -D_GNU_SOURCE error: command ‘cl.exe’ failed: No such file or directory ---------------------------------------- ERROR: Command errored out with exit status 1: ‘C:\Users\Lenovo\Miniconda3\envs\rasa_envs\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson\setup.py’"’"’; file=’"’"‘C:\Users\Lenovo\AppData\Local\Temp\pip-install-xstzgnl_\ujson\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record ‘C:\Users\Lenovo\AppData\Local\Temp\pip-record-b8rgsn_m\install-record.txt’ --single-version-externally-managed --compile --install-headers ‘C:\Users\Lenovo\Miniconda3\envs\rasa_envs\Include\ujson’ Check the logs for full command output.