User Tools

Site Tools


user:rolf001:rasa:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
user:rolf001:rasa:start [2023/09/22 09:21] – removed - external edit (Unknown date) 127.0.0.1user:rolf001:rasa:start [2023/09/22 09:21] (current) – ↷ Page moved from rolf:start to user:rolf001:rasa:start rolf.becker
Line 1: Line 1:
 +====== Rolf's Page ======
 +
 +===== RASA =====
 +
 +<code bash>
 +# 2023-09-20 (=> Python 3.8 or 3.7)
 +
 +conda create -n rasa python=3.8
 +conda activate rasa
 +
 +pip3 install -U pip
 +
 +pip install rasa
 +# pip install rasa==3.0 
 +
 +</code>
 +
 +
 +<code bash>
 +
 +ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
 +    tensorflow==2.12.0 from https://files.pythonhosted.org/packages/e4/8a/0c38f712159d698e6216a4006bc91b31ce9c3412aaeae262b07f02db1174/tensorflow-2.12.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (from rasa):
 +        Expected sha256 23850332f1f9f778d697c9dba63ca52be72cb73363e75ad358f07ddafef63c01
 +             Got        315fe1640d6dd7f02d6c2dd0327c87c8b5d760c70a55234b657f3bebd8c9cb19
 +
 +</code>
 +
 +<WRAP center round important 60%>
 +Dirty workaround: \\
 +Ingore the error and install again. \\
 +The error does not occur anymore. NOT RELIABLE!
 +</WRAP>
 +
 +<code bash>
 +pip install rasa
 +</code>
 +
 +
 +<code bash>
 +rasa init # -> folder bot
 +rasa train
 +rasa shell # to stop: /stop
 +</code>
 +
 +
 +<code bash>
 +# THIS VERSION COMBINATION DOES NOT WORK FOR ME!
 +# conda deactivate
 +# conda env remove -n rasa
 +conda create -n rasa python=3.8
 +conda activate rasa
 +pip install rasa==3.0
 +</code>
 +
 +
 +<code bash>
 +# To distribute downloaded RASA example files
 +
 +cp ~/Downloads/config.yml .
 +cp ~/Downloads/domain.yml .
 +
 +cp ~/Downloads/nlu.yml ./bot/nlu.yml
 +cp ~/Downloads/stories.yml ./bot/stories.yml
 +cp ~/Downloads/rules.yml ./bot/rules.yml
 +</code>
 +