Hello RASA Community!
It is with great pleasure that I can share the results of hard-work spearheaded by @JulianGerhard and myself about how to install and run RASA on the RPi 4 having Raspbian Buster installed on the computer!
Please keep in mind, these instructions may still have issues - please post if you find anything wrong with it.
Here are the instructions
First, prepare a fresh installation of Raspbian Buster (Lite) on your Pi.
Copy the following script into a file called install.sh
:
# Update the Raspberry Pi
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
# Install initial build dependencies
# Provides
# Enables pip3.6 to access pypi
sudo apt-get install libbz2-dev libssl-dev -y
# Get and install Python3.6
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
tar -xvf Python-3.6.8.tar.xz
cd Python-3.6.8
sudo ./configure
sudo make -j4
sudo make install
# Update Python3.6 packages
python3.6 -m pip install --upgrade pip setuptools --user
# Install additional dependencies
# Enables access to Tensorflow whl
# Dependency for the h5py python package
sudo apt-get install python3-pip libhdf5-dev -y
# Install Tensorflow
python3.6 -m pip install tensorflow==1.14.0 --user
# Install OpenCV Dependencies
sudo apt-get install build-essential cmake unzip pkg-config -y
sudo apt-get install libjpeg-dev libpng-dev libtiff-dev -y
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y
sudo apt-get install libxvidcore-dev libx264-dev -y
sudo apt-get install libgtk-3-dev -y
sudo apt-get install libcanberra-gtk* -y
sudo apt-get install libatlas-base-dev gfortran -y
sudo apt-get install python3-dev -y
# Download OpenCV and clarify naming scheme
cd ~
wget -O opencv.zip https://github.com/opencv/opencv/archive/4.0.0.zip
wget -O opencv_contrib.zip https://github.com/opencv/opencv_contrib/archive/4.0.0.zip
unzip opencv.zip
unzip opencv_contrib.zip
mv opencv-4.0.0 opencv
mv opencv_contrib-4.0.0 opencv_contrib
cd ~/opencv
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D ENABLE_NEON=ON \
-D ENABLE_VFPV3=ON \
-D BUILD_TESTS=OFF \
-D OPENCV_ENABLE_NONFREE=ON \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D BUILD_EXAMPLES=OFF ..
# Increasing swap size to make OpenCV
SWAPSIZE=2048
sed -i "s/^CONF_SWAPSIZE.*/CONF_SWAPSIZE=${SWAPSIZE}/" /etc/dphys-swapfile
# Restarting swap service
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
# Make OpenCV
make -j4
# Install OpenCV
sudo make install
sudo ldconfig
# Reseting swap size
SWAPSIZE=100
sed -i "s/^CONF_SWAPSIZE.*/CONF_SWAPSIZE=${SWAPSIZE}/" /etc/dphys-swapfile
# Restarting swap service
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
# Link cv2 to Python3.6
cd /usr/local/lib/python3.6/site-packages/
sudo ln -s /usr/local/python/cv2/python-3.6/cv2.cpython-36m-arm-linux-gnueabihf.so cv2.so
# In case git is not installed
sudo apt-get install git -y
# Getting codebases for spaCy, tensor2tensor, and RASA
# NOTE: This is hard-coded for rasa-1.4.0 right now - let's make it more elegant soon
cd ~
git clone https://github.com/explosion/spaCy
git clone https://github.com/tensorflow/tensor2tensor
git clone https://github.com/google/dopamine.git
wget https://github.com/RasaHQ/rasa/archive/1.4.0.zip && unzip 1.4.0.zip
# Installing spaCy
export BLIS_ARCH=generic
cd ~/spaCy
python3.6 -m pip install -r requirements.txt --user
python3.6 setup.py build_ext --inplace
python3.6 -m pip install . --user
# Installing dopamine-rl
cd ~/dopamine
sed -i '/opencv-python/d' setup.py
python3.6 -m pip install . --user
# Installing tensor2tensor
cd ~/tensor2tensor
sed -i '/opencv-python/d' setup.py
sed -i '/dopamine-rl/d' setup.py
python3.6 -m pip install . --user --force-reinstall
# Installing other RASA dependencies
sudo apt install libpq-dev/buster -y
python3.6 -m pip install psycopg2 --user
# Installing RASA
cd ~/rasa-1.4.0
sed -i '/tensor2tensor/d' setup.py
sed -i '/tensor2tensor/d' requirements.txt
python3.6 -m pip install -r requirements.txt --user --force-reinstall
python3.6 -m pip install . --user --force-reinstall
# Script exit
echo ""
echo ""
echo "------------------------------------------------------------"
echo "Congratulations! Rasa is now installed on your Raspberry Pi."
echo "To test rasa out, run python3.6 -m rasa init and start "
echo "creating your bot!"
Execute the following: sudo chmod +x install.sh
on the Raspberry Pi
Execute the following: ./install.sh
on the RPi. Please note that installation will take a very long time (~3 hours or so). Grab a tea (I recommend a London Fog), go for a run, read a book and come back later!
You will have some folders and files leftover in your home directory so feel free to delete those now that everything is installed.
THANK YOU!
I would certainly like to thank @JulianGerhard21 for all the fantastic assistance, input, and massively heavy lifting. Without Julianโs input, none of this would be possible. I have had a wonderful time working together here and learned a lot from you and this process - a โthank youโ cannot do you enough justice butโฆ THANK YOU
I would also like to thank @jrosebr for his awesome instructions that I adapted here for installing OpenCV.
Finally, a huge thank you to the RASA team (@Tobias_Wochinger and @akelad ). Thank you for making this wonderful product and I am excited to see how we can all use it on resource-constrained devices!
7 Likes
Thanks for all your work @TheCedarPrince @JulianGerhard ,
Unfortunately I didnโt have the chance to test it out myself because I donโt own a raspberry pi 4. Did anybody have a chance to do so? Would love to hear your feedback!
Continuing the discussion from Running RASA on the RPi 4 with Raspbian Buster! :
hello๏ผwhy? Have a error,โpip is configured with locations that require TLS/SSL, however the ssl module in Python is not availableโ when i run python3.6 -m pip install --upgrade pip setuptools --user, thanks
1 Like
@1535966643 Did you run this command
sudo apt-get install libbz2-dev libssl-dev -y
before you tried installing the setuptools?
PLEASE NOTE:
ANYONE STRUGGLING WITH ISSUES IN THE INSTALL PLEASE INCLUDE THE FOLLOWING IN YOUR POST HERE:
Traceback of your error
Where exactly the script failed
The output of python3.6 -m pip freeze
I do not have the time to parse the error without this information - this will help me get to the error as fast as possible.
Thank You!
~ TheCedarPrince
stephens
(Greg Stephens)
November 8, 2019, 3:15am
6
I had to remove dopamine from the tensor2tensor setup.py file as suggested in the github issue.
Iโve posted a modified install script as a gist and I now have Rasa running on a Raspberry Pi 4!
3 Likes
Awesome @stephens ! Glad this could help you out! I will modify the main script here for future users. Have fun with the RasaPi!
fuih
(Huy Bui)
November 8, 2019, 4:24am
8
Hello @TheCedarPrince ,
I found this to be very interesting. But since iโm kinda a noob, i donโt really understand what it means to be able to run Rasa on RPi. Does it mean that i can run a model on RPi ? Can i run the Rasa server in RPi too ? For example if i have a voice recognition module interface with the RPi, i can extract the text, send that message to a Rasa server running in RPi and predict intents, etcโฆ such as โturn off the lightโ and control the peripheral PINs correspondingly ?
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:
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. 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.
fuih
(Huy Bui)
November 9, 2019, 11:08am
13
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.
Rasatest
(Mark)
November 11, 2019, 1:58pm
15
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 Simple Index
Looking in indexes: Simple index , piwheels - Simple index , Simple Index
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!
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.
PLEASE NOTE:
ANYONE STRUGGLING WITH ISSUES IN THE INSTALL PLEASE INCLUDE THE FOLLOWING IN YOUR POST HERE:
Traceback of your error
Where exactly the script failed
The output of python3.6 -m pip freeze
I do not have the time to parse the error without this information - this will help me get to the error as fast as possible.
Thank You!
~ TheCedarPrince
stephens
(Greg Stephens)
November 19, 2019, 6:33pm
19
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