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

时间:2019-04-12 07:42:19

标签: python-2.7 docker rasa-nlu rasa-core

当我尝试使用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

1 个答案:

答案 0 :(得分:0)

Rasa 0.14.0a9当前是Alpha版本,新文档尚未发布。要么卸载rasa软件包并使用稳定版本rasa_core==0.13.7rasa_nlu==0.14.6,要么使用新的cli rasa shell