Running RASA on the RPi 4 with Raspbian Buster!

Hey @fuih,

That is exactly what it means - you should be able to run a server on the RPi. I have been able to successfully train and create a model on the RPi.

It sounds like you are working on an end2end personal assistant project - you can think of RASA in this case acting as the brain for your system. And it can do that. The whole reason why I decided to work with RASA was that I saw it had the flexibility to do all this.

If you are curious, here was the criterion I used to assess RASA:

Screenshot_20191108_105054

And believe it or not, RASA checked off everything on this list.

Now, I think all the rest you have to do @fuih is to let your imagination run wild and see what you can do. :smiley: If you need any help getting this running on your RPi, we are here to support you!

Good luck making your RasaPi!

Yours, TheCedarPrince

2 Likes

你好,我确实这样运行了,但还是不行(要奔溃了)。我的树莓派是4B,python系统为2.7和3.7,我想知道我能不能在3.7上安装,因为安装py3.6一直有问题,还有对rasa的版本有什么要求吗?(前面我安装,rasa在rasa init时候发生错误)

抱歉,英语很差,只能中文给您留言。对上面我的树莓派的配置,您有什么建议吗?怎么样才能安全顺利安装rasa呢?还有一个问题,pip安装时候没有1.14.0的TensorFlow。先谢谢你

Hey @1535966643,

I am using a translator - I am using simple words in English.

The tutorial was not made for Python 3.7. I cannot provide help there.

It is a good question to ask on the forum. I suggest making another post and ask about how to use python3.7 with the raspberry pi.

Thank you @TheCedarPrince, this is very awesome. Is there any hardware requirement of the RPi4 that we have to meet ? From what i see RPi4 can come with 1,2 or 4GB RAM, which one should be enough to run Rasa normally ?

Great question! I highly suggest the RPi4 with 4GB of RAM. I have not tested it otherwise and I do not know if it would work with less RAM.

Thank you @TheCedarPrince for the install-script. I’ve installed it in 32bit-mode on Rasbian (Buster) to the Pi4 with 4gb, After that, i saw that the Editor “Visual Studio Code” needs an 64bit-System to install. Is it enough to set the bootmode in raspbian to 64bit after the installation, or do I have to restart the installation?

Then i installed RASA X with some Errormassages …

pi@pi4:~ $ pip install rasa-x --extra-index-url https://pypi.rasa.com/simple Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://pypi.rasa.com/simple Collecting rasa-x Downloading https://pypi.rasa.com/api/package/rasa-x/rasa-x-0.22.2.tar.gz (1.6MB) |████████████████████████████████| 1.6MB 1.7MB/s Installing build dependencies … done Getting requirements to build wheel … done Preparing wheel metadata … done Collecting rasa~=1.4.0 Downloading https://files.pythonhosted.org/packages/63/a0/00d1cb8cb7d9f6c8a3c97a0688fa6c621e5698a4fceafbc5bf348a1ea721/rasa-1.4.3-py3-none-any.whl (518kB) |████████████████████████████████| 522kB 1.5MB/s Collecting aiohttp~=3.5 Downloading https://files.pythonhosted.org/packages/c2/f7/f0ad3dbace4762fef5d80aa4124b41bf218e4c4dd6d387a86cede707d9a4/aiohttp-3.6.2-py3-none-any.whl (441kB) |████████████████████████████████| 450kB 7.3MB/s Collecting sanic-cors==0.9.9.post1 Downloading https://files.pythonhosted.org/packages/ac/a9/7168016496ab945b6bad51deaa6e9c0526ad8b09a43db49561b8c82e5484/Sanic_Cors-0.9.9.post1-py2.py3-none-any.whl Collecting cryptography~=2.7 Downloading https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz (504kB) |████████████████████████████████| 512kB 9.7MB/s Installing build dependencies … done Getting requirements to build wheel … done Preparing wheel metadata … done Requirement already satisfied: attrs>=18 in ./.local/lib/python3.6/site-packages (from rasa-x) (19.3.0) Collecting pyjwt Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl Collecting pyyaml~=5.1 Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz (265kB) |████████████████████████████████| 266kB 9.7MB/s Collecting SQLAlchemy~=1.3.0 Downloading https://files.pythonhosted.org/packages/14/0e/487f7fc1e432cec50d2678f94e4133f2b9e9356e35bacc30d73e8cb831fc/SQLAlchemy-1.3.10.tar.gz (6.0MB) |████████████████████████████████| 6.0MB 101kB/s Requirement already satisfied: requests~=2.22 in ./.local/lib/python3.6/site-packages (from rasa-x) (2.22.0) Collecting jsonschema~=2.6.0 Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl Collecting alembic~=1.0.10 Downloading https://www.piwheels.org/simple/alembic/alembic-1.0.11-py2.py3-none-any.whl (164kB) |████████████████████████████████| 174kB 962kB/s Collecting pika~=1.0.0 Downloading https://files.pythonhosted.org/packages/78/1a/28c98ee8b211be21d4a9f4ef1687c4d36f9302d47fcc28b81f9591abf6d8/pika-1.0.1-py2.py3-none-any.whl (148kB) |████████████████████████████████| 153kB 6.5MB/s Collecting questionary>=1.1.0 Downloading https://files.pythonhosted.org/packages/94/2a/2f874784637210ac5866635d2627b9171c717cdd8ab0aab1ce4382c91575/questionary-1.4.0-py3-none-any.whl Collecting setuptools-scm~=3.3 Using cached https://files.pythonhosted.org/packages/1d/70/97966deebaeeda0b81d3cd63ba9f8ec929b838871ed17476de9d8159db3e/setuptools_scm-3.3.3-py2.py3-none-any.whl Collecting apscheduler~=3.5 Downloading https://files.pythonhosted.org/packages/f3/34/9ef20ed473c4fd2c3df54ef77a27ae3fc7500b16b192add4720cab8b2c09/APScheduler-3.6.3-py2.py3-none-any.whl (58kB) |████████████████████████████████| 61kB 2.6MB/s Collecting sanic~=19.6 Downloading https://files.pythonhosted.org/packages/b5/99/a0c18220d313cd6bc26728259f7719bd3f31ebb7c5d45015b6e3426174da/sanic-19.9.0-py3-none-any.whl (73kB) |████████████████████████████████| 81kB 3.4MB/s Collecting sanic-jwt~=1.3 Downloading https://www.piwheels.org/simple/sanic-jwt/sanic_jwt-1.3.2-py3-none-any.whl Collecting isodate~=0.6.0 Downloading https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl (45kB) |████████████████████████████████| 51kB 2.7MB/s Collecting python-dateutil~=2.8 Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB) |████████████████████████████████| 235kB 10.7MB/s Collecting kafka-python~=1.4 Downloading https://files.pythonhosted.org/packages/49/c9/9863483a1353700ba87821b4f39085eb18fd1bcbb1e954c697177d67f03f/kafka_python-1.4.7-py2.py3-none-any.whl (266kB) |████████████████████████████████| 266kB 11.1MB/s Collecting python-telegram-bot~=11.0 Downloading https://files.pythonhosted.org/packages/84/6c/47932a4041ee76650ad1f45a80e1422077e1e99c08a4d7a61cfbe5393d41/python_telegram_bot-11.1.0-py2.py3-none-any.whl (326kB) |████████████████████████████████| 327kB 10.9MB/s Collecting terminaltables~=3.1 Downloading https://www.piwheels.org/simple/terminaltables/terminaltables-3.1.0-py3-none-any.whl Collecting scipy~=1.2 Using cached https://files.pythonhosted.org/packages/df/20/2f147945396fa74b467d696e42aa55eb603d166490a8ebe4d79e54c793df/scipy-1.3.2.tar.gz Installing build dependencies … done Getting requirements to build wheel … done Preparing wheel metadata … done Collecting colorhash~=1.0 Downloading https://files.pythonhosted.org/packages/0e/e1/50dbc513aa74e99eca4c47f2a8206711f0bec436fdddd95eebaf7eaaa1aa/colorhash-1.0.2-py2.py3-none-any.whl Collecting coloredlogs~=10.0 Downloading https://files.pythonhosted.org/packages/08/0f/7877fc42fff0b9d70b6442df62d53b3868d3a6ad1b876bdb54335b30ff23/coloredlogs-10.0-py2.py3-none-any.whl (47kB) |████████████████████████████████| 51kB 1.2MB/s Collecting redis~=3.3.5 Downloading https://files.pythonhosted.org/packages/32/ae/28613a62eea0d53d3db3147f8715f90da07667e99baeedf1010eb400f8c0/redis-3.3.11-py2.py3-none-any.whl (66kB) |████████████████████████████████| 71kB 2.3MB/s Collecting slackclient~=1.3 Downloading https://www.piwheels.org/simple/slackclient/slackclient-1.3.2-py2.py3-none-any.whl Collecting networkx~=2.3.0 Downloading https://files.pythonhosted.org/packages/85/08/f20aef11d4c343b557e5de6b9548761811eb16e438cee3d32b1c66c8566b/networkx-2.3.zip (1.7MB) |████████████████████████████████| 1.8MB 8.6MB/s Collecting gast==0.2.2 Downloading https://www.piwheels.org/simple/gast/gast-0.2.2-py3-none-any.whl Collecting tensorflow-probability~=0.7.0 Using cached https://files.pythonhosted.org/packages/3e/3a/c10b6c22320531c774402ac7186d1b673374e2a9d12502cbc8d811e4601c/tensorflow_probability-0.7.0-py2.py3-none-any.whl Collecting async-generator~=1.10 Downloading https://files.pythonhosted.org/packages/71/52/39d20e03abd0ac9159c162ec24b93fbcaa111e8400308f2465432495ca2b/async_generator-1.10-py3-none-any.whl Collecting twilio~=6.0 Downloading https://www.piwheels.org/simple/twilio/twilio-6.33.0-py2.py3-none-any.whl (1.0MB) |████████████████████████████████| 1.0MB 792kB/s Collecting tensorflow~=1.14.0 Downloading https://www.piwheels.org/simple/tensorflow/tensorflow-1.14.0-cp36-none-linux_armv7l.whl (100.7MB) |████████████████████████████████| 100.7MB 12kB/s Collecting rasa-sdk~=1.4.0 Downloading https://files.pythonhosted.org/packages/d1/b5/efcc3572366efb0b293ff2251510eafd62636a9c70b0d6b691340b05e005/rasa_sdk-1.4.0-py2.py3-none-any.whl Collecting matplotlib~=3.0 Downloading https://files.pythonhosted.org/packages/12/d1/7b12cd79c791348cb0c78ce6e7d16bd72992f13c9f1e8e43d2725a6d8adf/matplotlib-3.1.1.tar.gz (37.8MB) |████████████████████████████████| 37.8MB 35kB/s Collecting scikit-learn~=0.20.2 Downloading https://files.pythonhosted.org/packages/20/a0/5ec20d7e460d8ebde9ec5e40cda4339c5f546871c3a5bf9228f615b25618/scikit-learn-0.20.4.tar.gz (11.7MB) |████████████████████████████████| 11.7MB 79kB/s Collecting tensor2tensor~=1.14.0 Downloading https://files.pythonhosted.org/packages/20/eb/7159c5a12880c496893a5bf7242c23fdb4eed47ade683d111f2f2d4009b4/tensor2tensor-1.14.1-py2.py3-none-any.whl (1.6MB) |████████████████████████████████| 1.6MB 9.4MB/s Collecting pytz~=2019.1 Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB) |████████████████████████████████| 512kB 7.9MB/s Requirement already satisfied: tqdm~=4.0 in ./.local/lib/python3.6/site-packages (from rasa~=1.4.0->rasa-x) (4.38.0) Collecting absl-py>=0.8.0 Using cached https://www.piwheels.org/simple/absl-py/absl_py-0.8.1-py3-none-any.whl Collecting colorclass~=2.2 Downloading https://www.piwheels.org/simple/colorclass/colorclass-2.2.0-py3-none-any.whl Collecting gevent~=1.4 Using cached https://files.pythonhosted.org/packages/ed/27/6c49b70808f569b66ec7fac2e78f076e9b204db9cf5768740cff3d5a07ae/gevent-1.4.0.tar.gz Collecting ruamel.yaml~=0.15.0 Downloading https://files.pythonhosted.org/packages/9a/ee/55cd64bbff971c181e2d9e1c13aba9a27fd4cd2bee545dbe90c44427c757/ruamel.yaml-0.15.100.tar.gz (318kB) |████████████████████████████████| 327kB 9.6MB/s Collecting python-engineio>=3.9.3 Downloading https://files.pythonhosted.org/packages/9b/fb/843f043988306d12f27ae62a82ce26edc7513580e5e089b4911326879f7e/python_engineio-3.10.0-py2.py3-none-any.whl (120kB) |████████████████████████████████| 122kB 8.8MB/s Collecting fbmessenger~=6.0 Downloading https://files.pythonhosted.org/packages/bd/e9/646684226176782b9e3b7dd5b35d7ecfd1d13cba24ad2e33255079921aab/fbmessenger-6.0.0-py2.py3-none-any.whl Collecting pykwalify~=1.7.0 Downloading https://files.pythonhosted.org/packages/36/9f/612de8ca540bd24d604f544248c4c46e9db76f6ea5eb75fb4244da6ebbf0/pykwalify-1.7.0-py2.py3-none-any.whl (40kB) |████████████████████████████████| 40kB 2.3MB/s Collecting mattermostwrapper~=2.0 Downloading https://files.pythonhosted.org/packages/93/70/203660597d12788e958dd691aa11c3c29caa075eadb2ce94d2eb53099d1b/mattermostwrapper-2.1-py2.py3-none-any.whl Collecting jsonpickle~=1.1 Downloading https://files.pythonhosted.org/packages/07/07/c157520a3ebd166c8c24c6ae0ecae7c3968eb4653ff0e5af369bb82f004d/jsonpickle-1.2-py2.py3-none-any.whl Collecting webexteamssdk~=1.1 Downloading https://www.piwheels.org/simple/webexteamssdk/webexteamssdk-1.2-py3-none-any.whl (82kB) |████████████████████████████████| 92kB 777kB/s Collecting pydot~=1.4 Downloading https://files.pythonhosted.org/packages/33/d1/b1479a770f66d962f545c2101630ce1d5592d90cb4f083d38862e93d16d2/pydot-1.4.1-py2.py3-none-any.whl Collecting python-socketio>=4.3.1 Downloading https://files.pythonhosted.org/packages/35/b0/22c3f785f23fec5c7a815f47c55d7e7946a67ae2129ff604148e939d3bdb/python_socketio-4.3.1-py2.py3-none-any.whl (49kB) |████████████████████████████████| 51kB 2.0MB/s Collecting pymongo[srv,tls]~=3.8 Downloading https://files.pythonhosted.org/packages/c0/69/9388b715d013444ae8e5d497a6825d120f6a7a67ef5aa8ddea62f601cbff/pymongo-3.9.0.tar.gz (701kB) |████████████████████████████████| 706kB 9.0MB/s Requirement already satisfied: numpy~=1.16 in ./.local/lib/python3.6/site-packages (from rasa~=1.4.0->rasa-x) (1.17.3) Collecting sklearn-crfsuite~=0.3.6 Downloading https://files.pythonhosted.org/packages/25/74/5b7befa513482e6dee1f3dd68171a6c9dfc14c0eaa00f885ffeba54fe9b0/sklearn_crfsuite-0.3.6-py2.py3-none-any.whl Collecting rocketchat-API~=0.6.0 Downloading https://files.pythonhosted.org/packages/89/b5/1b9104733bcadc3d8dc8bcab8f3a73a4ae1dc1de91b4b30fbcb65fa63bd4/rocketchat_API-0.6.35-py3-none-any.whl Requirement already satisfied: setuptools>=41.0.0 in ./.local/lib/python3.6/site-packages (from rasa~=1.4.0->rasa-x) (41.6.0) Requirement already satisfied: packaging~=19.0 in ./.local/lib/python3.6/site-packages (from rasa~=1.4.0->rasa-x) (19.2) Collecting boto3~=1.9 Downloading https://files.pythonhosted.org/packages/7f/4f/880cb8ed7856bc6f7b1488210259bbd1155c68d3f0a972b0c90b54205e44/boto3-1.10.14-py2.py3-none-any.whl (128kB) |████████████████████████████████| 133kB 5.5MB/s Collecting multidict<5.0,>=4.5 Downloading https://files.pythonhosted.org/packages/7f/8f/b3c8c5b062309e854ce5b726fc101195fbaa881d306ffa5c2ba19efa3af2/multidict-4.5.2.tar.gz (105kB) |████████████████████████████████| 112kB 8.7MB/s Collecting async-timeout<4.0,>=3.0 Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl Collecting idna-ssl>=1.0; python_version < “3.7” Downloading https://www.piwheels.org/simple/idna-ssl/idna_ssl-1.1.0-py3-none-any.whl Collecting yarl<2.0,>=1.0 Downloading https://files.pythonhosted.org/packages/fb/84/6d82f6be218c50b547aa29d0315e430cf8a23c52064c92d0a8377d7b7357/yarl-1.3.0.tar.gz (159kB) |████████████████████████████████| 163kB 10.3MB/s Collecting typing-extensions>=3.6.5; python_version < “3.7” Downloading https://files.pythonhosted.org/packages/03/92/705fe8aca27678e01bbdd7738173b8e7df0088a2202c80352f664630d638/typing_extensions-3.7.4.1-py3-none-any.whl Requirement already satisfied: chardet<4.0,>=2.0 in ./.local/lib/python3.6/site-packages (from aiohttp~=3.5->rasa-x) (3.0.4) Collecting sanic-plugins-framework>=0.8.2 Downloading https://files.pythonhosted.org/packages/ac/a6/258bdd353c22c3ff7f130d1c788f874a88e48d306614d2f622f3bac2576b/Sanic_Plugins_Framework-0.8.2-py2.py3-none-any.whl Requirement already satisfied: six>=1.4.1 in ./.local/lib/python3.6/site-packages (from cryptography~=2.7->rasa-x) (1.13.0) Collecting cffi!=1.11.3,>=1.8 Using cached https://files.pythonhosted.org/packages/2d/bf/960e5a422db3ac1a5e612cb35ca436c3fc985ed4b7ed13a1b4879006f450/cffi-1.13.2.tar.gz Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests~=2.22->rasa-x) (2019.9.11) Requirement already satisfied: idna<2.9,>=2.5 in ./.local/lib/python3.6/site-packages (from requests~=2.22->rasa-x) (2.8) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests~=2.22->rasa-x) (1.25.6) Collecting python-editor>=0.3 Downloading https://files.pythonhosted.org/packages/c6/d3/201fc3abe391bbae6606e6f1d598c15d367033332bd54352b12f35513717/python_editor-1.0.4-py3-none-any.whl Collecting Mako Downloading https://www.piwheels.org/simple/mako/Mako-1.1.0-py3-none-any.whl (75kB) |████████████████████████████████| 81kB 504kB/s Collecting prompt-toolkit~=2.0 Downloading https://files.pythonhosted.org/packages/87/61/2dfea88583d5454e3a64f9308a686071d58d59a55db638268a6413e1eb6d/prompt_toolkit-2.0.10-py3-none-any.whl (340kB) |████████████████████████████████| 348kB 8.7MB/s Collecting tzlocal>=1.2 Downloading https://files.pythonhosted.org/packages/ef/99/53bd1ac9349262f59c1c421d8fcc2559ae8a5eeffed9202684756b648d33/tzlocal-2.0.0-py2.py3-none-any.whl Collecting ujson>=1.35; sys_platform != “win32” and implementation_name == “cpython” Downloading https://files.pythonhosted.org/packages/16/c4/79f3409bc710559015464e5f49b9879430d8f87498ecdc335899732e5377/ujson-1.35.tar.gz (192kB) |████████████████████████████████| 194kB 10.3MB/s Collecting requests-async==0.5.0 Downloading https://www.piwheels.org/simple/requests-async/requests_async-0.5.0-py3-none-any.whl Collecting websockets<9.0,>=7.0 Downloading https://files.pythonhosted.org/packages/e9/2b/cf738670bb96eb25cb2caf5294e38a9dc3891a6bcd8e3a51770dbc517c65/websockets-8.1.tar.gz (58kB) |████████████████████████████████| 61kB 3.0MB/s WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’,))’: /simple/aiofiles/ Collecting aiofiles>=0.3.0 Downloading https://files.pythonhosted.org/packages/cf/f2/a67a23bc0bb61d88f82aa7fb84a2fb5f278becfbdc038c5cbb36c31feaf1/aiofiles-0.4.0-py3-none-any.whl Collecting uvloop>=0.5.3; sys_platform != “win32” and implementation_name == “cpython” Downloading https://files.pythonhosted.org/packages/84/2e/462e7a25b787d2b40cf6c9864a9e702f358349fc9cfb77e83c38acb73048/uvloop-0.14.0.tar.gz (2.0MB) |████████████████████████████████| 2.0MB 6.4MB/s Collecting httptools>=0.0.10 Downloading https://files.pythonhosted.org/packages/1b/03/215969db11abe8741e9c266a4cbe803a372bd86dd35fa0084c4df6d4bd00/httptools-0.0.13.tar.gz (104kB) |████████████████████████████████| 112kB 8.5MB/s Collecting future>=0.16.0 Using cached https://www.piwheels.org/simple/future/future-0.18.2-py3-none-any.whl Collecting humanfriendly>=4.7 Downloading https://files.pythonhosted.org/packages/90/df/88bff450f333114680698dc4aac7506ff7cab164b794461906de31998665/humanfriendly-4.18-py2.py3-none-any.whl (73kB) |████████████████████████████████| 81kB 1.5MB/s Collecting websocket-client<0.55.0,>=0.35 Downloading https://files.pythonhosted.org/packages/26/2d/f749a5c82f6192d77ed061a38e02001afcba55fe8477336d26a950ab17ce/websocket_client-0.54.0-py2.py3-none-any.whl (200kB) |████████████████████████████████| 204kB 7.9MB/s Collecting decorator>=4.3.0 Downloading https://files.pythonhosted.org/packages/8f/b7/f329cfdc75f3d28d12c65980e4469e2fa373f1953f5df6e370e84ea2e875/decorator-4.4.1-py2.py3-none-any.whl Collecting cloudpickle>=0.6.1 Using cached https://files.pythonhosted.org/packages/c1/49/334e279caa3231255725c8e860fa93e72083567625573421db8875846c14/cloudpickle-1.2.2-py2.py3-none-any.whl Collecting wrapt>=1.11.1 Downloading https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz Collecting grpcio>=1.8.6 Downloading https://files.pythonhosted.org/packages/11/1d/49f0d0f7a21edb723ef6c28d78de0f03d890b51126824bb9e0650604181a/grpcio-1.25.0-cp36-cp36m-linux_armv7l.whl (14.9MB) |████████████████████████████████| 14.9MB 37kB/s Collecting astor>=0.6.0 Downloading https://files.pythonhosted.org/packages/d1/4f/950dfae467b384fc96bc6469de25d832534f6b4441033c39f914efd13418/astor-0.8.0-py2.py3-none-any.whl Collecting tensorboard<1.15.0,>=1.14.0 Downloading https://files.pythonhosted.org/packages/91/2d/2ed263449a078cd9c8a9ba50ebd50123adf1f8cfbea1492f9084169b89d9/tensorboard-1.14.0-py3-none-any.whl (3.1MB) |████████████████████████████████| 3.2MB 11.1MB/s Collecting keras-preprocessing>=1.0.5 Downloading https://files.pythonhosted.org/packages/28/6a/8c1f62c37212d9fc441a7e26736df51ce6f0e38455816445471f10da4f0a/Keras_Preprocessing-1.1.0-py2.py3-none-any.whl (41kB) |████████████████████████████████| 51kB 2.8MB/s Collecting termcolor>=1.1.0 Downloading https://www.piwheels.org/simple/termcolor/termcolor-1.1.0-py3-none-any.whl Collecting protobuf>=3.6.1 Downloading https://files.pythonhosted.org/packages/ad/c2/86c65136e280607ddb2e5dda19e2953c1174f9919b557d1d154574481de4/protobuf-3.10.0-py2.py3-none-any.whl (434kB) |████████████████████████████████| 440kB 7.8MB/s Collecting google-pasta>=0.1.6 Downloading https://files.pythonhosted.org/packages/c3/fd/1e86bc4837cc9a3a5faf3db9b1854aa04ad35b5f381f9648fbe81a6f94e4/google_pasta-0.1.8-py3-none-any.whl (57kB) |████████████████████████████████| 61kB 2.9MB/s Collecting keras-applications>=1.0.6 Downloading https://files.pythonhosted.org/packages/71/e3/19762fdfc62877ae9102edf6342d71b28fbfd9dea3d2f96a882ce099b03f/Keras_Applications-1.0.8-py3-none-any.whl (50kB) |████████████████████████████████| 51kB 2.5MB/s Collecting wheel>=0.26 Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0 Downloading https://files.pythonhosted.org/packages/3c/d5/21860a5b11caf0678fbc8319341b0ae21a07156911132e0e71bffed0510d/tensorflow_estimator-1.14.0-py2.py3-none-any.whl (488kB) |████████████████████████████████| 491kB 10.0MB/s Collecting ConfigArgParse>=0.14 Downloading https://www.piwheels.org/simple/configargparse/ConfigArgParse-0.15.1-py3-none-any.whl Collecting flask~=1.0 Using cached https://files.pythonhosted.org/packages/9b/93/628509b8d5dc749656a9641f4caf13540e2cdec85276964ff8f43bbb1d3b/Flask-1.1.1-py2.py3-none-any.whl Collecting flask-cors~=3.0 Downloading https://files.pythonhosted.org/packages/78/38/e68b11daa5d613e3a91e4bf3da76c94ac9ee0d9cd515af9c1ab80d36f709/Flask_Cors-3.0.8-py2.py3-none-any.whl Collecting cycler>=0.10 Downloading https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl Collecting kiwisolver>=1.0.1 Downloading https://files.pythonhosted.org/packages/16/e7/df58eb8868d183223692d2a62529a594f6414964a3ae93548467b146a24d/kiwisolver-1.1.0.tar.gz Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./.local/lib/python3.6/site-packages (from matplotlib~=3.0->rasa~=1.4.0->rasa-x) (2.4.5) Collecting dopamine-rl Downloading https://www.piwheels.org/simple/dopamine-rl/dopamine_rl-2.0.5-py3-none-any.whl (77kB) |████████████████████████████████| 81kB 852kB/s Collecting tensorflow-datasets Using cached https://files.pythonhosted.org/packages/e2/14/900746f9b8e1ed8ea93661f1a62b3937a5a25858d550ece38de8ea579f2d/tensorflow_datasets-1.3.0-py3-none-any.whl Collecting sympy Using cached https://files.pythonhosted.org/packages/21/21/f4105795ca7f35c541d82c5b06be684dd2f5cb4f508fb487cd7aea4de776/sympy-1.4-py2.py3-none-any.whl WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProtocolError(‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’,))’: /simple/kfac/ Collecting kfac Using cached https://files.pythonhosted.org/packages/01/f0/4a7758f854a15b37d322827123ce58619d0f4270dd94f2dd30328f397339/kfac-0.2.0-py2.py3-none-any.whl Collecting gin-config Using cached https://www.piwheels.org/simple/gin-config/gin_config-0.2.1-py3-none-any.whl Collecting gym Using cached https://www.piwheels.org/simple/gym/gym-0.15.4-py3-none-any.whl Collecting h5py Using cached https://files.pythonhosted.org/packages/5f/97/a58afbcf40e8abecededd9512978b4e4915374e5b80049af082f49cebe9a/h5py-2.10.0.tar.gz Collecting bz2file Using cached https://www.piwheels.org/simple/bz2file/bz2file-0.98-py3-none-any.whl Collecting mesh-tensorflow Using cached https://files.pythonhosted.org/packages/42/10/7bbf9f19bbd57693b7cd66358ad432ea358e2af24d0f444ec6abf6385f49/mesh_tensorflow-0.1.4-py2.py3-none-any.whl Collecting gunicorn Using cached https://files.pythonhosted.org/packages/60/0d/3dbda0324f5bf007f3274e5ea09f0f3bcbf0ca01a75b80ff4f1ff9f8ecfd/gunicorn-20.0.0-py2.py3-none-any.whl ERROR: Could not find a version that satisfies the requirement opencv-python (from tensor2tensor~=1.14.0->rasa~=1.4.0->rasa-x) (from versions: none) ERROR: No matching distribution found for opencv-python (from tensor2tensor~=1.14.0->rasa~=1.4.0->rasa-x) <<<

Thanks for help!

Hey @Rasatest,

  1. I do not know much about changing the architecture settings on the RPi - the issue of installing VSCode is outside the scope of this issue. Moreover, I tested this in a headless Raspbian image so I do not know how things would work in a desktop in this case.

  2. The area you are getting is when you install Rasa-X from pip. What you need to do is install it from source and remove tensor2tensor, dopamine, and open-cv from it’s setup.py file. Let me know if that works for you. :slight_smile:

TheCedarPrince

hello,i has installed rasa,ending, my infomation of RPI 4 is rasa1.2X,python3.7,tf1.13.1.for example,please use ‘pip3 install rasa==1.2.9’ is ok.rasa’s version is very important that must 1.2X。

Could you please follow the instructions here and reply? I do not understand what your issue is currently.

It feels like I’m close to having the RasaPi docker image but it’s not quite there and I haven’t had a chance to get back to it the past week. I’m posting my Dockerfile on gist. Hoping someone can give it a try.

I installed Docker on my Pi by adding the following line to /etc/apt/sources.list

https://apt.dockerproject.org/repo/ raspbian-RELEASE main

Then run these commands:

sudo apt-get install -y docker.io
sudo apt install python3-pip
sudo pip3 install docker-compose

Then run the build:

sudo docker build .
1 Like

Hey @stephens, this looks like a great start.

I am going to break this conversation into another forum post as it pertains more to an issue with Docker rather than getting the Rasa on the Pi. I will tag you in the new post so you can provide more info about what is happening.

TheCedarPrince

Hi @TheCedarPrince. I ran the script on freshly installed Raspian Buster but wasn’t able to run Rasa because it couldn’t find TensorFlow models. Do you know what would be causing this?

Hey @zshoaib - not entirely sure what the issue is but it appears you have an error here:

Should the name be “MemorizationPolicy” and not “MemoriationPolicy”? Seems like a typo.

Hi @TheCedarPrince. No, Memoization policy is a part of RASA policies: Policies

On second look, this looks a bit more involved than I initially thought. It would appear there is an issue with tensor2tensor - I will have to take a look at this more later. Right now, I am working with @stephens on developing a Dockerfile for easy installation - please check back a bit later. Will let you know what happens.

I’ve created an install script that you can see-get here. It does a clean install of the latest Rasa v1.60 on the current raspbian-buster(2019-09-26).

Mine is different from what others have posted earlier in the thread. It works fairly quickly and creates a clean install and allows Rasa models to run well from my testing on a Raspberry Pi4 or 3B+. But it fails in training mode! For my use-case it works…I train the model on a different computer and move it to the Pi where it does just fine.

I’d love to hear from others who might have a better handle as to trainning issues.

1 Like

Hi, it doesn’t work on my Pi 4 4Gb with Ubuntu server 19.10 64 bits

@TheCedarPrince @stephens @ziligy Thank you for all your work, I have trained a Rasa model on ubuntu PC using Rasa 1.7.0 and its working great,

But I wish to transfer the trained model from my Ubuntu to Raspberry Pi and then run on it,

  1. What are the steps I should follow to achieve above?
  2. Is the above scripts compatible with models trained using Rasa 1.7.0?
  3. I do not wish to train the model on Raspberry Pi but only run the model so which Raspberry Pi model I better invest on?

I am eagerly waiting for your answer, Thank you

I don’t think we can install Rasa on Raspberry :frowning: