使用默认命令设置 rasa-x 管理员密码时出错

Getting error when set rasa-x admin password with default command

我已经在 docker-compose 中部署了 RASA 开源和 Rasa-x。使用此命令为rasa-x设置管理员密码时,出现错误。

sudo python rasa_x_commands.py create --update admin me admin

错误:

File "rasa_x_commands.py", line 102
    command = f"delete {args.username}"
                                      ^
SyntaxError: invalid syntax

转到 > cd /etc/rasa/

执行以下命令:

docker-compose exec rasa-x bash -c “python3 /app/scripts/manage_users.py create me welcome123 admin --update”’

在末尾添加了 --update 因为它给了我以下没有 --update 的错误消息:

User ‘me’ already exists. You can update the password by running

sudo python rasa_x_commands.py create --update me admin <new_pw>

尝试: sudo python3 rasa_x_commands.py create --update admin system_user

默认用户“我”并不总是有效。 我也无法使用以下方法创建新用户:

sudo python3 rasa_x_commands.py 创建管理员