I’m trying to install Rasa on MacOS 10.13.6 High Sierra. I’m running Python 3.7.10 and pip 21.1.2.
I followed the steps on Installation and when I ran pip3 install rasa
I got the following error:
Building wheel for dm-tree (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/rodmaia/Trb/Repos/rasa-for-beginners/venv/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/setup.py'"'"'; __file__='"'"'/private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/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 /private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-wheel-t93bvd7t
cwd: /private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/
Complete output (13 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.7
creating build/lib.macosx-10.13-x86_64-3.7/tree
copying tree/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/tree
copying tree/tree_benchmark.py -> build/lib.macosx-10.13-x86_64-3.7/tree
copying tree/tree_test.py -> build/lib.macosx-10.13-x86_64-3.7/tree
running build_ext
bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.13-x86_64-3.7/bazel- --compilation_mode=opt
unable to execute 'bazel': No such file or directory
error: command 'bazel' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for dm-tree
Running setup.py clean for dm-tree
Failed to build dm-tree
Installing collected packages: dm-tree, decorator, cycler, cryptography, coloredlogs, cloudpickle, bidict, aiormq, aiohttp, webexteamssdk, twilio, terminaltables, tensorflow-text, tensorflow-probability, tensorflow-hub, tensorflow-addons, SQLAlchemy, slackclient, sklearn-crfsuite, sentry-sdk, scikit-learn, sanic-jwt, rocketchat-API, regex, redis, rasa-sdk, questionary, python-socketio, pyTelegramBotAPI, pykwalify, pydot, psycopg2-binary, packaging, oauth2client, networkx, mattermostwrapper, matplotlib, kafka-python, jsonschema, jsonpickle, fbmessenger, colorhash, colorclass, boto3, async-generator, apscheduler, aio-pika, rasa
Running setup.py install for dm-tree ... error
ERROR: Command errored out with exit status 1:
command: /Users/rodmaia/Trb/Repos/rasa-for-beginners/venv/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/setup.py'"'"'; __file__='"'"'/private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/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 /private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-record-97hes039/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rodmaia/Trb/Repos/rasa-for-beginners/venv/include/site/python3.7/dm-tree
cwd: /private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.13-x86_64-3.7
creating build/lib.macosx-10.13-x86_64-3.7/tree
copying tree/__init__.py -> build/lib.macosx-10.13-x86_64-3.7/tree
copying tree/tree_benchmark.py -> build/lib.macosx-10.13-x86_64-3.7/tree
copying tree/tree_test.py -> build/lib.macosx-10.13-x86_64-3.7/tree
running build_ext
bazel build //tree:_tree --symlink_prefix=build/temp.macosx-10.13-x86_64-3.7/bazel- --compilation_mode=opt
unable to execute 'bazel': No such file or directory
error: command 'bazel' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/rodmaia/Trb/Repos/rasa-for-beginners/venv/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/setup.py'"'"'; __file__='"'"'/private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-install-0j_v14r9/dm-tree_3f503f1e11d1463190c53f9533ccb27b/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 /private/var/folders/n1/bfj4sbvx0nqfcdc2h3_sbm800000gn/T/pip-record-97hes039/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rodmaia/Trb/Repos/rasa-for-beginners/venv/include/site/python3.7/dm-tree Check the logs for full command output.
Same thing happened with Python 3.6.x and 3.8.x. I also tried Python 3.9.x but that gave me a “rasa command not found”.
What config changes do I need to make?