RuntimeError:不再支持直接调用`rasa.core.run`。请改用`rasa shell`

问题描述 投票:1回答:1

当我尝试使用docker运行rasa-nlu时,我遇到了以下问题:

Attaching to chatbotstack_rasa_nlu_1
rasa_nlu_1         | Traceback (most recent call last):
rasa_nlu_1         |   File "/usr/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main
rasa_nlu_1         |     "__main__", mod_spec)
rasa_nlu_1         |   File "/usr/local/lib/python3.6/runpy.py", line 85, in _run_code
rasa_nlu_1         |     exec(code, run_globals)
rasa_nlu_1         |   File "/app/rasa/core/run.py", line 204, in <module>
rasa_nlu_1         |     "Calling `rasa.core.run` directly is "
rasa_nlu_1         | RuntimeError: Calling `rasa.core.run` directly is no longer supported. Please use `rasa shell` instead.

我在下面指定了以下版本:

rasa                    0.14.0a9 /app    
rasa-addons             0.5.9    
rasa-core               0.13.7   
rasa-core-sdk           0.12.2   
rasa-nlu                0.14.6
python-2.7 docker rasa-nlu rasa-core
1个回答
0
投票

Rasa 0.14.0a9目前是alpha版本,新文档尚未发布。卸载rasa包并使用稳定版本rasa_core==0.13.7rasa_nlu==0.14.6或使用新的cli rasa shell

© www.soinside.com 2019 - 2024. All rights reserved.