Anyone please help me with Rasa installation on Mac OS?

Hi, I’m getting the following error when trying to install Rasa on Mac OS. Any idea how to fix this? Thanks!

ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/setup.py’"’"’; file=’"’"’/private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/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/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-wheel-tw5wq756 cwd: /private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/ Complete output (17 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/init.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/_regex_core.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/test_regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex running build_ext building ‘regex._regex’ extension creating build/temp.macosx-10.9-x86_64-3.8 creating build/temp.macosx-10.9-x86_64-3.8/regex_3 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.9-x86_64-3.8/regex_3/_regex.o 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 regex Running setup.py clean for regex Failed to build regex Installing collected packages: regex, rasa Running setup.py install for regex … error ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/setup.py’"’"’; file=’"’"’/private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/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/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-record-p99wadxc/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/regex cwd: /private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/ Complete output (17 lines): running install running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/init.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/_regex_core.py -> build/lib.macosx-10.9-x86_64-3.8/regex copying regex_3/test_regex.py -> build/lib.macosx-10.9-x86_64-3.8/regex running build_ext building ‘regex._regex’ extension creating build/temp.macosx-10.9-x86_64-3.8 creating build/temp.macosx-10.9-x86_64-3.8/regex_3 gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c regex_3/_regex.c -o build/temp.macosx-10.9-x86_64-3.8/regex_3/_regex.o 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: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/setup.py’"’"’; file=’"’"’/private/var/folders/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-install-rlc2oknx/regex/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/_m/5w9r3_xs6k5ggkb1w1cyrf0c0000gn/T/pip-record-p99wadxc/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/regex Check the logs for full command output.

Hi @tzrtuba, can you install Xcode command line tools by running xcode-select --install and then try installing Rasa again?

1 Like

Have we found a solution to this ?