Rasa Open Source 3.3 launched πŸš€

Hello Rasa Community!

I’m excited to announce that Rasa Open Source 3.3 has been released, and the docs have been updated. This launch includes a major improvement: Rasa supports native installations on Apple Silicon (M1/M2).

This also includes other updates like, continuous event export , caching message along with some bug fixes. You can find the full release notes here


Hi @sonam, did you or your team had issues while installing Rasa 3.3 on Mac M1? I tried it, I faced package installation error for grpcio. Below are logs for same.

Traceback (most recent call last):
        File "/private/var/folders/yp/n4b_22px4b592cw1fddmdnhm0000gn/T/pip-install-c2muo62g/grpcio_62c271f9e9c54cef8abda393504adcb3/src/python/grpcio/commands.py", line 280, in build_extensions
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial
        File "/Users/dishantgandhi/Desktop/hoory/hb-training-composer/venv/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
          _build_ext.build_extension(self, ext)
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension
          objects = self.compiler.compile(sources,
        File "/private/var/folders/yp/n4b_22px4b592cw1fddmdnhm0000gn/T/pip-install-c2muo62g/grpcio_62c271f9e9c54cef8abda393504adcb3/src/python/grpcio/_parallel_compile_patch.py", line 58, in _parallel_compile
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/multiprocessing/pool.py", line 364, in map
          return self._map_async(func, iterable, mapstar, chunksize).get()
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/multiprocessing/pool.py", line 771, in get
          raise self._value
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/multiprocessing/pool.py", line 125, in worker
          result = (True, func(*args, **kwds))
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
          return list(map(*args))
        File "/private/var/folders/yp/n4b_22px4b592cw1fddmdnhm0000gn/T/pip-install-c2muo62g/grpcio_62c271f9e9c54cef8abda393504adcb3/src/python/grpcio/_parallel_compile_patch.py", line 54, in _compile_single_file
          self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
        File "/private/var/folders/yp/n4b_22px4b592cw1fddmdnhm0000gn/T/pip-install-c2muo62g/grpcio_62c271f9e9c54cef8abda393504adcb3/src/python/grpcio/commands.py", line 263, in new_compile
          return old_compile(obj, src, ext, cc_args, extra_postargs,
        File "/Users/dishantgandhi/miniforge3/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile
          raise CompileError(msg)
      distutils.errors.CompileError: command 'gcc' failed with exit status 1
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

Γ— Encountered error while trying to install package.
╰─> grpcio

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

python version: Python 3.8.12

My group has also had continued problems installing on M1 Mac.

Hey @Horizon733, which method are you using to install rasa? Can you please share the command?

I briefly googled for β€œlegacy-install-failure pip grpcio” which seems to be the error you are getting. And some posts offer some advice, such as this one: grpcio error: legacy-install-failure with pip install [Fixed] | bobbyhadz. Can you first try to upgrade your version of pip, wheel, and setuptools using pip install --upgrade pip setuptools wheel? If that doesn’t work the post has some additional hints for Env vars on Mac.

Please let us know how it goes. I have installed the dependencies on my 2021 M1 multiple times the past days without any issues as I was working on upgrading some dependencies.

Hey @tomp,

do you mind sharing some specifics? We have multiple machines in the company and customers who are using M1 successfully.

@twerkmeister Sure, I tried the above method, but I still have the same issue, Macbook pro M1 I have is `Mac Ventura with 16gb. I am using venv for creating the environment. Can you please tell me what else you need to understand?

@twerkmeister It was a problem with installing this new Rasa package in the same environment as GCP packages. We are trying a different work-around, e.g., not installing GCP packages at all. I’ll see if we still have details to share.

Hey Dishant, did you have any luck so far getting around the compile error for grpcio? In the past some on our team got around compiler issues by reinstalling their pyenv environment again (so reinstalling the 3.8.12 environment not just creating a new venv inside of it).

hey @tomp, this seems not related to the grpcio compilation error above, right? Were you able to resolve or replicate the GCP conflict?

It may not be the same error. I just noticed that multiple people are still having trouble installing Rasa on M1 Macs despite their saying that the problems are fixed.

Sorry, I don’t have more details on my team’s installation problem. We were forced to time-box this path after spending so many days trying to install Rasa and GCP packages together without success. We are going a different route now.

Also having issues. Installation is successful but then get this (macOS Monterey 12.6)

Hi @twerkmeister, I tried installing Rasa with python 3.8.10 on Mac M1 it worked properly and rasa init worked too, but rasa train does not work, I guess it is related to TensorFlow. I am also sharing one more screenshot where Rasa was getting installed there was one warning, that might be helpful.

1 Like

@Horizon733 - I just installed Rasa latest on my Mac M1 with Python 3.9, For me everything seems to be working incl training with the basic config created by Rasa init.

Rasa Version      :         3.3.1
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.4.0
Python Version    :         3.9.15
Operating System  :         macOS-12.6.1-arm64-arm-64bit
Python Path       :         /Users/souvikghosh/.pyenv/versions/3.9.15/envs/rasa/bin/python
1 Like

Oh @souvikg10 thanks, let me try with 3.9

This works perfectly with python 3.9.15. including Rasa shell and rasa run commands. Thanks again!

1 Like

It’s not working for me. I have the same error with Python 3.9.15. I have Ventura 13.0.1 on M1 Mac