1

我对 Rasa X 有疑问。安装部分成功,但是当我执行“rasa x”命令时出现以下错误,并打开一个新的浏览器窗口并显示带有文本的猫图像:“前端编译 - 现在......我们等”

(venv) user@DELL-Admin:~/PycharmProjects/Rasa_chatbot$ rasa x 
Starting Rasa X in local mode... 
 Building frontend (development mode)... 
make: *** No rule to make target 'install-frontend'.  Stop. 
Failed to install frontend dependencies. Check logs for details. 
Process Process-2: 
Traceback (most recent call last):   
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in
    _bootstrap
        self.run()   
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
        self._target(*self._args, **self._kwargs)   
File "/home/user/PycharmProjects/Rasa_chatbot/venv/lib/python3.6/site-packages/rasax/community     /api/blueprints/interface.py", line 65, in run_build
        "Frontend install failed! Check the logs for details.",   
File "/home/user/PycharmProjects/Rasa_chatbot/venv/lib/python3.6/site-packages/rasax/community/api/blueprints/interface.py", line 37, in _write_index_html
        os.mkdir(path) 
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/PycharmProjects/Rasa_chatbot/venv/lib/python3.6/site-packages/rasax/community/api/blueprints/../../../../../../src/frontend/build' /home/user/PycharmProjects/Rasa_chatbot/venv/lib/python3.6/site-packages/rasa/core/training/dsl.py:422: UserWarning: Found unknown intent 'greet' on line 2. Please, make sure that all intents are listed in your domain yaml.   docs=DOCS_URL_DOMAINS,

    The server is running at http://localhost:5002/login?username=me&password=weZD6Q9KLFjUN

    2020-03-28 13:28:24.557697: E tensorflow/stream_executor/cuda/cuda_driver.cc:351] failed call to cuInit: UNKNOWN ERROR (303)

当我执行“rasa train”和“rasa shell”命令时,我没有错误,但是当我执行“rasa x”命令时,我得到了错误?

4

2 回答 2

0

Rasa X 最新版本 (0.27.1) 有错误,所以只需按照以下步骤使 Rasa X 工作-

  1. 卸载“rasa”、“rasa-sdk”和“rasa-x”(如果已安装)
  2. 通过此命令安装 Rasa X 0.26.3-

    pip install rasa-x==0.26.3 --extra-index-url https://pypi.rasa.com/simple

    • 这将自动安装兼容的 rasa 版本
    • (还要确保根据您的默认 python 使用 pip / pip3 )
  3. 通过“rasa init”创建一个演示机器人</p>

  4. 输入“rasa x”</p>

于 2020-03-30T09:04:49.043 回答
0

最新版本的 Rasa x 来了,只需使用以下命令更新您的 Rasa x:我对其进行了测试,它工作正常。更新一下

pip install rasa-x==0.27.2 --extra-index-url https://pypi.rasa.com/simple

在运行此代码之前激活虚拟环境。

Note Configuration:

Rasa - 1.9.3
Rasa SDK - 1.9.0
Rasa x - 0.27.2

不要安装 Rasa X 版本(0.27.0 和 0.27.1)不支持依赖项。

于 2020-03-30T18:21:07.280 回答