Running RASA on the RPi 4 with Raspbian Buster!

Thank you!

running the script I get WARNING: The script is installed in ‘/home/pi/.local/bin’ which is not on PATH

Then also when I try to run rasa init to test it

File “/usr/local/lib/python3.6/tkinter/init.py”, line 36, in import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named ‘_tkinter’

Hello, I would like to thank you for all the support, especially for @JulianGerhard @stephens @TheCedarPrince

I’m developing a project with Rasa on my RPI, I followed all the documentation you sent in the thread, but I’m not getting success. I am using a Raspberry Pi 3 Model B, 1GB RAM. Is that why it is not working? Thanks

I think you need to install tk-dev and build one more time the python3.6

sudo apt install tk-dev
# in python install path
sudo ./configure
make -j4
sudo make install

Hi @JulianGerhard, I’m executing your readme, and I got stack on last step installing Tensorflow 2.1. Error message is as follow:

(rasa_env) pi@raspberrypi:~/Python-3.7.0/Bazel_bin/2.0.0/Raspbian_Debian_Buster_armhf/openjdk-8-jdk $ sudo pip install tensorflow-2.1.0-cp37-cp37m-linux_armv7l.whl
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
ERROR: tensorflow-2.1.0-cp37-cp37m-linux_armv7l.whl is not a supported wheel on this platform.

Any idea what is wrong? I’m trying to install on a Rapi 4 with Raspbian GNU/Linux 10 (buster). Thanks for the great effort and support this community. Carlos

Hi @JulianGerhard, first time user of rasa, thanks for your work! I tried to installed rasa on raspberry pi 3, had some problems, but managed to installed rasa1.2.9, python3.7 on Linux raspberrypi 5.4.72-v7+.

When I tried to run “rasa init” then communicate on cmdline, I got a lot of deprecated messages. Not sure where to go from here. Any suggestions would be appreciated. Below are the messages.

Now let’s start! :point_down:t4:

? Please enter a path where the project will be created [default: current direct ory] . ? Directory ‘/home/pi/project_hello’ is not empty. Continue? Yes Created project directory at ‘/home/pi/project_hello’. Finished creating project structure. Training an initial model… Nothing changed. You can use the old model stored at ‘/home/pi/project_hello/models/20201118-092711.tar.gz’. ? Do you want to speak to the trained assistant on the command line? :robot: No Ok :+1:t3:. If you want to speak to the assistant, run ‘rasa shell’ at any time inside the project directory. (venv) pi@raspberrypi:~/project_hello $ rasa shell /home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

_np_qint8 = np.dtype([(“qint8”, np.int8, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint8 = np.dtype([(“quint8”, np.uint8, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint16 = np.dtype([(“qint16”, np.int16, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint16 = np.dtype([(“quint16”, np.uint16, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint32 = np.dtype([(“qint32”, np.int32, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. np_resource = np.dtype([(“resource”, np.ubyte, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint8 = np.dtype([(“qint8”, np.int8, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint8 = np.dtype([(“quint8”, np.uint8, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint16 = np.dtype([(“qint16”, np.int16, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_quint16 = np.dtype([(“quint16”, np.uint16, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. _np_qint32 = np.dtype([(“qint32”, np.int32, 1)]) /home/pi/venv/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. np_resource = np.dtype([(“resource”, np.ubyte, 1)]) WARNING:tensorflow:From /home/pi/venv/lib/python3.7/site-packages/tensorflow/init.py:98: The name tf.AUTO_REUSE is deprecated. Please use tf.compat.v1.AUTO_REUSE instead.

WARNING:tensorflow:From /home/pi/venv/lib/python3.7/site-packages/tensorflow/init.py:98: The name tf.AttrValue is deprecated. Please use tf.compat.v1.AttrValue instead.

WARNING:tensorflow:From /home/pi/venv/lib/python3.7/site-packages/tensorflow/init.py:98: The name tf.COMPILER_VERSION is deprecated. Please use tf.version.COMPILER_VERSION instead.

WARNING:tensorflow:From /home/pi/venv/lib/python3.7/site-packages/tensorflow/init.py:98: The name tf.CXX11_ABI_FLAG is deprecated. Please use tf.sysconfig.CXX11_ABI_FLAG instead.

WARNING:tensorflow:From /home/pi/venv/lib/python3.7/site-packages/tensorflow/init.py:98: The name tf.ConditionalAccumulator is deprecated. Please use tf.compat.v1.ConditionalAccumulator instead. 2020-11-18 09:46:05 INFO root - Connecting to channel ‘cmdline’ which was specified by the ‘–connector’ argument. Any other channels will be ignored. To connect to all given channels, omit the ‘–connector’ argument. 2020-11-18 09:46:05 INFO root - Starting Rasa server on http://localhost:5005 2020-11-18 09:46:14 ERROR rasa.core.agent - Could not load model due to ‘str’ object has no attribute ‘decode’. Bot loaded. Type a message and press enter (use ‘/stop’ to exit): 2020-11-18 09:46:15 ERROR asyncio - Task exception was never retrieved future: <Task finished coro=<configure_app..run_cmdline_io() done, defined at /home/pi/venv/lib/python3.7/site-packages/rasa/core/run.py:122> exception=RuntimeError(‘this event loop is already running.’)> Traceback (most recent call last): File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/run.py”, line 126, in run_cmdline_io server_url=constants.DEFAULT_SERVER_FORMAT.format(“http”, port) File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/channels/console.py”, line 129, in record_messages text = get_user_input(button_question) File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/channels/console.py”, line 77, in get_user_input style=Style([(“qmark”, “#b373d6”), ("", “#b373d6”)]), File “/home/pi/venv/lib/python3.7/site-packages/questionary/question.py”, line 50, in ask return self.unsafe_ask(patch_stdout) File “/home/pi/venv/lib/python3.7/site-packages/questionary/question.py”, line 64, in unsafe_ask return self.application.run() File “/home/pi/venv/lib/python3.7/site-packages/prompt_toolkit/application/application.py”, line 817, in run self.run_async(pre_run=pre_run, set_exception_handler=set_exception_handler) File “uvloop/loop.pyx”, line 1450, in uvloop.loop.Loop.run_until_complete File “uvloop/loop.pyx”, line 1443, in uvloop.loop.Loop.run_until_complete File “uvloop/loop.pyx”, line 1351, in uvloop.loop.Loop.run_forever File “uvloop/loop.pyx”, line 480, in uvloop.loop.Loop._run RuntimeError: this event loop is already running. Your input → Experienced exception while trying to serve
Traceback (most recent call last): File “/home/pi/venv/lib/python3.7/site-packages/sanic/app.py”, line 1096, in run serve(**server_settings) File “/home/pi/venv/lib/python3.7/site-packages/sanic/server.py”, line 742, in serve trigger_events(before_start, loop) File “/home/pi/venv/lib/python3.7/site-packages/sanic/server.py”, line 604, in trigger_events loop.run_until_complete(result) File “uvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/run.py”, line 233, in load_agent_on_start action_endpoint=endpoints.action, File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/agent.py”, line 264, in load_agent remote_storage=remote_storage, File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/agent.py”, line 924, in load_local_model remote_storage=remote_storage, File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/agent.py”, line 380, in load ensemble = PolicyEnsemble.load(core_model) if core_model else None File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 232, in load policy = policy_cls.load(policy_path) File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/policies/keras_policy.py”, line 320, in load model = load_model(model_file) File “/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py”, line 137, in load_model File “/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py”, line 160, in load_model_from_hdf5 model_config = json.loads(model_config.decode(‘utf-8’)) AttributeError: ‘str’ object has no attribute ‘decode’ Traceback (most recent call last): File “/home/pi/venv/bin/rasa”, line 8, in sys.exit(main()) File “/home/pi/venv/lib/python3.7/site-packages/rasa/main.py”, line 76, in main cmdline_arguments.func(cmdline_arguments) File “/home/pi/venv/lib/python3.7/site-packages/rasa/cli/shell.py”, line 101, in shell rasa.cli.run.run(args) File “/home/pi/venv/lib/python3.7/site-packages/rasa/cli/run.py”, line 119, in run rasa.run(**vars(args)) File “/home/pi/venv/lib/python3.7/site-packages/rasa/run.py”, line 55, in run **kwargs File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/run.py”, line 194, in serve_application app.run(host=“0.0.0.0”, port=port, ssl=ssl_context) File “/home/pi/venv/lib/python3.7/site-packages/sanic/app.py”, line 1096, in run serve(**server_settings) File “/home/pi/venv/lib/python3.7/site-packages/sanic/server.py”, line 742, in serve trigger_events(before_start, loop) File “/home/pi/venv/lib/python3.7/site-packages/sanic/server.py”, line 604, in trigger_events loop.run_until_complete(result) File “uvloop/loop.pyx”, line 1456, in uvloop.loop.Loop.run_until_complete File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/run.py”, line 233, in load_agent_on_start action_endpoint=endpoints.action, File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/agent.py”, line 264, in load_agent remote_storage=remote_storage, File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/agent.py”, line 924, in load_local_model remote_storage=remote_storage, File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/agent.py”, line 380, in load ensemble = PolicyEnsemble.load(core_model) if core_model else None File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/policies/ensemble.py”, line 232, in load policy = policy_cls.load(policy_path) File “/home/pi/venv/lib/python3.7/site-packages/rasa/core/policies/keras_policy.py”, line 320, in load model = load_model(model_file) File “/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/save.py”, line 137, in load_model return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile) File “/home/pi/venv/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py”, line 160, in load_model_from_hdf5 model_config = json.loads(model_config.decode(‘utf-8’)) AttributeError: ‘str’ object has no attribute ‘decode’ sys:1: RuntimeWarning: coroutine ‘Loop.create_server’ was never awaited

I have a Raspberry Pi 4 with 4 GB.

I get as far as installing the tensorflow sudo pip3 install tensorflow-2.1.0-cp37-cp37m-linux_armv7l.whl

and get this error ERROR: tensorflow-2.1.0-cp37-cp37m-linux_armv7l.whl is not a supported wheel on this platform.

I have tried 2.2.0 and 2.4.0 with the same response.

Im not sure where to go from here to resolve this

@channe hello do you have any progress on installing rasa on RPI ?

Hello, is there any update to the installation script/tutorial? If yes, can you please share it? I need help installing any Rasa version on:

  • Raspberry PI 4 8GB
  • fresh Rasbian 10 Buster installation

The scripts above fail when installing tensorflow. Any help would be appreciated.

Hello thank you for the fantastic instructions on getting Rasa set up. Most of the steps worked but I am getting an error during the Install Rasa step of README_18.md. I am running raspbian 10 buster on rpi 4b 8gb and here is the error

(rasa_env) pi@rasapi:~/rasa $ make install
poetry run python -m pip install -U 'pip<20'
/home/pi/rasa_env/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
Collecting pip<20
  Downloading pip-19.3.1-py2.py3-none-any.whl (1.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 5.0 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.0.2
    Uninstalling pip-22.0.2:
      Successfully uninstalled pip-22.0.2
Successfully installed pip-19.3.1
poetry install
/home/pi/rasa_env/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
Installing dependencies from lock file
/home/pi/rasa_env/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,

Package operations: 188 installs, 25 updates, 2 removals

  • Removing typing-extensions (3.7.4.1)
  • Removing wheel (0.34.2)
  • Updating six (1.16.0 -> 1.14.0)
  • Updating certifi (2021.10.8 -> 2019.11.28)
  • Installing chardet (3.0.4)
  • Installing docutils (0.15.2)
  • Installing hpack (3.0.0)
  • Installing hyperframe (5.2.0)
  • Updating idna (3.3 -> 2.8)
  • Installing jmespath (0.9.5)
  • Installing python-dateutil (2.8.1)
  • Updating urllib3 (1.26.8 -> 1.25.8)
  • Installing botocore (1.15.23)
  • Updating cachetools (4.2.4 -> 4.0.0)
  • Installing decorator (4.4.2)
  • Installing h11 (0.8.1)
  • Installing h2 (3.2.0)
  • Installing hstspreload (2020.3.17)
  • Installing ipython-genutils (0.2.0)
  • Updating oauthlib (3.2.0 -> 3.1.0)
  • Updating requests (2.27.1 -> 2.23.0)
  • Installing rfc3986 (1.3.2)
  • Updating rsa (4.8 -> 4.0)
  • Installing sniffio (1.1.0)
  • Updating zipp (3.7.0 -> 3.1.0)
  • Installing aiofiles (0.4.0)
  • Installing attrs (19.3.0)
  • Updating google-auth (1.35.0 -> 1.11.3)
  • Installing httptools (0.1.1)
  • Installing httpx (0.9.3)
  • Updating importlib-metadata (4.10.1 -> 1.5.0)
  • Installing multidict (4.7.5)
  • Updating numpy (1.21.5 -> 1.18.2)
  • Updating protobuf (3.19.4 -> 3.11.3)
  • Installing pyparsing (2.4.6)
  • Installing pyrsistent (0.15.7)
  • Updating requests-oauthlib (1.3.1 -> 1.3.0)
  • Installing s3transfer (0.3.3)
  • Installing traitlets (4.3.3)
  • Installing ujson (1.35)
  • Installing uvloop (0.14.0)
  • Installing websockets (8.0.2)
  • Updating absl-py (1.0.0 -> 0.9.0)
  • Installing boto3 (1.12.23)
  • Installing cffi (1.14.0)
  • Updating google-auth-oauthlib (0.4.6 -> 0.4.1)
  • Installing googleapis-common-protos (1.51.0)
  • Updating grpcio (1.43.0 -> 1.27.2)
  • Updating h5py (2.9.0 -> 2.10.0)
  • Installing jsonpointer (2.0)
  • Installing jsonschema (3.2.0)
  • Installing jupyter-core (4.6.3)
  • Updating markdown (3.3.6 -> 3.2.1)
  • Installing markupsafe (1.1.1)
  • Installing more-itertools (8.2.0)
  • Installing packaging (19.0)
  • Installing pluggy (0.13.1)
  • Installing py (1.8.1)
  • Installing pytz (2019.3)
  • Installing sanic (19.12.2)
  • Installing wcwidth (0.1.8)
  • Installing webencodings (0.5.1)
  • Updating werkzeug (2.0.2 -> 1.0.0)
  • Installing alabaster (0.7.12)
  • Installing apipkg (1.5)
  • Installing async-timeout (3.0.1)
  • Installing aws-sam-translator (1.22.0)
  • Installing babel (2.8.0)
  • Installing bleach (3.1.3)
  • Installing click (7.1.1)
  • Installing cryptography (2.8)
  • Installing defusedxml (0.6.0)
  • Installing ecdsa (0.15)
  • Installing entrypoints (0.3)
  • Installing future (0.18.2)
  • Installing google-api-core (1.16.0)
  • Installing humanfriendly (8.1)
  • Installing imagesize (1.2.0)
  • Installing isodate (0.6.0)
  • Installing jinja2 (2.11.1)
  • Installing joblib (0.14.1)
  • Installing jsonpatch (1.25)
  • Installing jsonpickle (1.3)
  • Installing mistune (0.8.4)
  • Installing nbformat (5.0.4)
  • Installing networkx (2.4)
  • Updating opt-einsum (3.3.0 -> 3.2.0)
  • Installing pandocfilters (1.4.2)
  • Installing pathtools (0.1.2)
  • Installing pygments (2.2.0)
  • Installing pytest (5.4.1)
  • Installing pyyaml (5.3)
  • Installing regex (2020.2.20)
  • Installing sanic-plugins-framework (0.9.2)
  • Installing snowballstemmer (2.0.0)
  • Installing sphinxcontrib-websupport (1.1.0)
  • Installing testpath (0.4.4)
  • Installing tqdm (4.31.1)
  • Installing tornado (6.0.4)
  • Installing websocket-client (0.57.0)
  • Updating wrapt (1.13.3 -> 1.12.1)
  • Installing yarl (1.4.2)
  • Installing aiohttp (3.6.2)
  • Installing appdirs (1.4.3)
  • Installing argh (0.26.2)
  • Installing async-generator (1.10)
  • Installing aws-xray-sdk (2.4.3)
  • Installing azure-core (1.3.0)
  • Installing boto (2.49.0)
  • Installing cfn-lint (0.29.0)
  • Installing cloudpickle (1.2.2)
  • Installing colorclass (2.2.0)
  • Installing coloredlogs (10.0)
  • Installing coverage (5.0.4)
  • Installing cycler (0.10.0)
  • Installing dnspython (1.16.0)
  • Installing docker (4.2.0)
  • Installing docopt (0.6.2)
  • Installing execnet (1.7.1)
  • Installing google-cloud-core (1.3.0)
  • Installing google-resumable-media (0.5.0)
  • Installing greenlet (0.4.15)
  • Installing importlab (0.5.1)
  • Installing incremental (17.5.0)
  • Installing ipaddress (1.0.23)
  • Installing jsondiff (1.1.2)
  • Installing kiwisolver (1.1.0): Installing...
  • Installing livereload (2.6.1)
  • Installing mccabe (0.6.1)
  • Updating mock (4.0.3 -> 4.0.2)
  • Installing msrest (0.6.11)
  • Installing nbconvert (5.6.1)
  • Installing ninja (1.9.0.post1): Failed

  EnvCommandError

  Command ['/home/pi/rasa_env/bin/pip', 'install', '--no-deps', '/home/pi/.cache/pypoetry/artifacts/50/6c/ee/0cbe0f8d1c30b01502a24f8201953e638fc6daf727c11b4b038d4989d6/ninja-1.9.0.post1.tar.gz'] errored with the following return code 1, and output:
  Processing /home/pi/.cache/pypoetry/artifacts/50/6c/ee/0cbe0f8d1c30b01502a24f8201953e638fc6daf727c11b4b038d4989d6/ninja-1.9.0.post1.tar.gz
      ERROR: Command errored out with exit status 1:
       command: /home/pi/rasa_env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-eo1oorkz/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-eo1oorkz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-eo1oorkz/pip-egg-info
           cwd: /tmp/pip-req-build-eo1oorkz/
  • Installing livereload (2.6.1)
  • Installing mccabe (0.6.1)
  • Updating mock (4.0.3 -> 4.0.2)
  • Installing msrest (0.6.11)
  • Installing nbconvert (5.6.1)
  • Installing ninja (1.9.0.post1): Failed

  EnvCommandError

  Command ['/home/pi/rasa_env/bin/pip', 'install', '--no-deps', '/home/pi/.cache/pypoetry/artifacts/50/6c/ee/0cbe0f8d1c30b01502a24f8201953e638fc6daf727c11b4b038d4989d6/ninja-1.9.0.post1.tar.gz'] errored with the following return code 1, and output:
  Processing /home/pi/.cache/pypoetry/artifacts/50/6c/ee/0cbe0f8d1c30b01502a24f8201953e638fc6daf727c11b4b038d4989d6/ninja-1.9.0.post1.tar.gz
      ERROR: Command errored out with exit status 1:
       command: /home/pi/rasa_env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-eo1oorkz/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-eo1oorkz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-eo1oorkz/pip-egg-info
           cwd: /tmp/pip-req-build-eo1oorkz/
  • Installing kiwisolver (1.1.0)
  • Installing livereload (2.6.1)
  • Installing mccabe (0.6.1)
  • Updating mock (4.0.3 -> 4.0.2)
  • Installing msrest (0.6.11)
  • Installing nbconvert (5.6.1)
  • Installing ninja (1.9.0.post1): Failed

  EnvCommandError

  Command ['/home/pi/rasa_env/bin/pip', 'install', '--no-deps', '/home/pi/.cache/pypoetry/artifacts/50/6c/ee/0cbe0f8d1c30b01502a24f8201953e638fc6daf727c11b4b038d4989d6/ninja-1.9.0.post1.tar.gz'] errored with the following return code 1, and output:
  Processing /home/pi/.cache/pypoetry/artifacts/50/6c/ee/0cbe0f8d1c30b01502a24f8201953e638fc6daf727c11b4b038d4989d6/ninja-1.9.0.post1.tar.gz
      ERROR: Command errored out with exit status 1:
       command: /home/pi/rasa_env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-eo1oorkz/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-eo1oorkz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-eo1oorkz/pip-egg-info
           cwd: /tmp/pip-req-build-eo1oorkz/
      Complete output (5 lines):
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "/tmp/pip-req-build-eo1oorkz/setup.py", line 7, in <module>
          from skbuild import setup
      ModuleNotFoundError: No module named 'skbuild'
      ----------------------------------------
  ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
  WARNING: You are using pip version 19.3.1; however, version 22.0.2 is available.
  You should consider upgrading via the 'pip install --upgrade pip' command.


  at ~/.poetry/lib/poetry/utils/env.py:1183 in _run
      1179│                 output = subprocess.check_output(
      1180│                     cmd, stderr=subprocess.STDOUT, **kwargs
      1181│                 )
      1182│         except CalledProcessError as e:
    → 1183│             raise EnvCommandError(e, input=input_)
      1184│
      1185│         return decode(output)
      1186│
      1187│     def execute(self, bin, *args, **kwargs):

  • Installing pathspec (0.7.0)
  • Installing port-for (0.3.1)
  • Installing prompt-toolkit (2.0.10)
  • Installing pycodestyle (2.5.0)
  • Installing pyflakes (2.1.1)
  • Installing pyjwt (1.7.1)
  • Installing pysocks (1.7.1)
  • Installing pytest-forked (1.1.3)
  • Installing python-crfsuite (0.9.7)
  • Installing python-engineio (3.11.2)
  • Installing python-jose (3.1.0)
  • Installing redis (3.4.1)
  • Installing requests-toolbelt (0.9.1)
  • Installing responses (0.10.12)
  • Installing ruamel.yaml (0.15.85)
  • Installing sanic-cors (0.10.0.post3)
  • Installing sentinels (1.0.0)
  • Installing sortedcontainers (2.1.0)
  • Installing sphinx (1.8.2)
  • Installing tabulate (0.8.6)
  • Installing toml (0.10.0)
  • Installing typed-ast (1.4.1)
  • Updating typeguard (2.13.3 -> 2.7.1)
  • Installing tzlocal (2.0.0)
  • Installing watchdog (0.10.2)
  • Installing xmltodict (0.12.0)
make: *** [Makefile:44: install] Error 1
(rasa_env) pi@rasapi:~/rasa $ pip install skbuild
ERROR: Could not find a version that satisfies the requirement skbuild (from versions: none)
ERROR: No matching distribution found for skbuild
WARNING: You are using pip version 19.3.1; however, version 22.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(rasa_env) pi@rasapi:~/rasa $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
(rasa_env) pi@rasapi:~/rasa $

Do you have any recommendations for fixing this? Thank you!

for the tensorflow step the scripts in the PINTO0309 repo the downloads seem to be broken so I had to download the whl from the google drive link in the script on my desktop and scp it to the pi. Hope that helps! (the drive.google.com link on this line: https://github.com/PINTO0309/Tensorflow-bin/blob/main/previous_versions/download_tensorflow-2.1.0-cp37-cp37m-linux_armv7l.sh#L3)

Did it work? I would like to know. Last time when I was trying to install rasa on a Raspberry Pi it failed installing tensorflow.

Yes tensorflow install was failing for me until I did that. If you had the same error I did then it was downloading the 404 page from google drive as a whl file, had to download the file it was attempting to download manually from a web browser and upload to pi. It took a long time to install and the loading bar was stuck a few times but it worked without errors. Now it is failing for me further along the readme on the error pasted above

Check this out. It seems that the pip version 19.3 is sufficient but on the second line in your error output (in makefile) tries to downgrade pip in your case.

That makes sense, so do I need to find manylinux1 wheel somewhere to make this work? Not very familiar with pip and dependencies

Hi, sorry for the late reply. I have found wheels for Tensorflow on Raspberry Pi. Is your system 32 or 64bit? As of recent, 64bit build is officially supported. Let me know if you had success installing it.

From this installing scikit-build before opencv seems to solve the ModuleNotFound skbuild error.

It is 64 bit but so far have only had luck with 32 bit docker image found on docker hub. did you use debian or raspbian and buster or bullseye? Thanks! will try it

my raspberry pi 4 is running on ubuntu 20.04 64bit. is it possible to install using the script above?

I don’t quite remember which version was it specifically. It was certainly a 32 bit OS and then I also installed that docker image successfully but it was painfully slow (for latest PI 4) so I have abandoned it completely out of frustration.

Hey all, if anyone is looking for an updated tutorial I just made one here