Hello Rasa Community!
I’m encountering an issue while trying to run rasa-pro on my MacBook with an M1 chip (macOS Sequoia). When I run rasa init --template tutorial
, I get the following error:
The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine.
Abort trap: 6
This error message seems to be because TensorFlow’s default binary distribution was built for x86 processors and optimized with AVX support, while Apple M1 chip (and subsequent Apple Silicon chips) does not support AVX instructions.
Context:
- OS: macOS Sequoia 15.1 (M1 chip)
- rasa-pro version: 3.10.8
- rasa-sdk version: 3.10.0
- Python version: 3.10.15
- TensorFlow version: 2.14.1
- Deployment Method: Local installation following the Rasa Pro tutorial, using pip for environment, and CLI to run
rasa init --template tutorial
. I have also tried withrasa init
and got the same results.
Steps I’m considering:
- re-installing the environment with Poetry instead of pip.
- re-installing the environment with TensorFlow for macOS with Apple silicon support:
tensorflow-macos
andtensorflow-metal
. - Using Rosetta 2 for x86 emulation (potential performance concerns).
- Docker container with x86 emulation (potential performance concerns).
I’d like to know if anyone has found a reliable solution to this issue based on their experience with Rasa on macOS M1. Is there an approach that minimizes compatibility issues without significant performance trade-offs?
Thank you in advance for your insights!