![]() ![]() Users/abriel/miniforge3/envs/rasa-venv/lib/python3.8/site-packages/rasa/shared/utils/io.py:97: UserWarning: The model at 'models' could not be loaded. Could not load model due to dlopen(/Users/abriel/miniforge3/envs/rasa-venv/lib/python3.8/site-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so, 0x0006): tried: '/Users/abriel/miniforge3/envs/rasa-venv/lib/python3.8/site-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so' (no such file), '/usr/local/lib/_text_similarity_metric_ops.so' (no such file), '/usr/lib/_text_similarity_metric_ops.so' (no such file). However, I’m running into an issue when attempting to start rasa using an existing model (or train a new one). I was able to successfully complete the workaround as far as I can tell. Once that is finished you should be able to run Rasa! python -m rasa -version ![]() #PYTHON MAC M1 INSTALL INSTALL#The versions shown below have been tested beforehand and seem to work! pip install git+ -no-deps conda activate rasatestĪt the time of writing this tutorial you’ll need to install the Rasa dependencies manually from git. Once these dependencies are installed we can active our environment. conda env create -v -name rasatest -f env.yml We’ll use the rasatest name for the environment. Given such an env.yml file, we can create a new environment. Conda does not work with requirements.txt files that you may be familiar with from pip. That means that conda is able to handle our Tensorflow dependencies from here on. This will activate an environment that is maintained by conda. Sh ~/Downloads/Miniforge3-MacOSX-arm64.sh You can install conda by downloading this file and running it locally via chmod +x ~/Downloads/Miniforge3-MacOSX-arm64.sh We will follow the steps that are described here as a reference. Next, we will install conda to deal with our dependencies. brew install libpq libxml2 libxmlsec1 pkg-config postgresql Once brew is installed you can install the required system dependencies. The script explains what it will do and then pauses before it does it. If you don’t have brew installed you can do so by running: /bin/bash -c "$(curl -fsSL )" Step One: System Dependenciesįirst, you’ll want to install some base dependencies for your operating system. While we might try to keep this thread up-to-date, it is likely that things might change depending on the Tensorflow support for these devices. If you use an ealier version of the operating system you’ll likely need to upgrade. These steps seem to work on MacOS Montery v12.0.1. What follows below is a step-by-step guide that explains how I got Rasa to work on a M1 Macbook Air. An unofficial guide to getting Rasa to work on a M1 Macbook. Hopefully, these steps won’t be needed in the future when the Tensorflow/pip incompatibilities are adressed. I think we’ve found a temporary workaround for the situation, but it’s important to emphesize that this workaround is very much temporary. ![]() Because Rasa uses Tensorflow we’ve been experiencing some pip-related hardship getting installations to work on the new apple M1 macbooks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |