rasa: After upgrade rasa from v2.1.3 to v2.2.1, local rasa x server doesn't work
Rasa version: 2.2.1
Rasa SDK version (if used & relevant): 2.2.0
Rasa X version (if used & relevant): 0.34.0
Python version: 3.8.6
Operating system (windows, osx, …): macOS Big Sur version 11.1
Issue:
After upgrade rasa from v2.1.3 to v2.2.1, local rasa x server doesn’t work.
Only after I edited rasa cli source code, it did work.
# rasa/cli/x.py
# line 493 ~ 499
local.main(
args,
project_path,
args.data,
token=rasa_x_token,
config_path=config_path
# domain_path=domain_path # I removed it!
)
Error (including full traceback):
(venv) (base) ➜ rasa git:(feature/prototype) ✗ rasa x
Traceback (most recent call last):
File "/Users/ys/dev/rasa/venv/lib/python3.8/site-packages/rasa/cli/x.py", line 493, in run_locally
local.main(
TypeError: main() got an unexpected keyword argument 'domain_path'
Sorry, something went wrong (see error above). Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up.
If you need help fixing the issue visit our forum: https://forum.rasa.com/.
(venv) (base) ➜ rasa git:(feature/prototype) ✗ rasa x --v
Traceback (most recent call last):
File "/Users/ys/dev/rasa/venv/lib/python3.8/site-packages/rasa/cli/x.py", line 493, in run_locally
local.main(
TypeError: main() got an unexpected keyword argument 'domain_path'
Sorry, something went wrong (see error above). Make sure to start Rasa X with valid data and valid domain and config files. Please, also check any warnings that popped up.
If you need help fixing the issue visit our forum: https://forum.rasa.com/.
Command or request that led to error:
rasa x
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (4 by maintainers)
I can confirm that the above problem does indeed continue to occur, and in fact it is two different problems. I can also confirm that I am working in a virtual environment and that I reinstalled the entire venv from scratch to check this issue.
To sum it up the two issues are
domain_pathissue that started this threaddomain_pathissue is dealt with correctly. This handle issue seems to be special to the Windows installation ofrasa-xand does not occur on Ubuntu 18.04.The handle issue occurs even if we comment out the code as suggested above. In that case (of commenting out the line of code) the traceback changes slightly.
Furthermore (not shown below to avoid confusion) even if I downgrade rasa to 2.1.3 while staying with rasa X 0.34 the handle issue continues to come up. So there seems right now to be no working combination of rasa x on Windows 10 (with either python 3.8.5 or 3.7.9). However switching to Ubuntu 18.04 with python 3.6.9 does work.
Please help.
Rasa Version : 2.2.2 Rasa SDK Version : 2.2.0 Rasa X Version : 0.34.0 Python Version : 3.8.5 Operating System : Windows-10-10.0.19041-SP0 Python Path : c:\workspace\py-pip-workspaces\rasa2-examples.venv\scripts\python.exe
So, here first is the traceback without any changes to the code
Here is the change I made to the code (as above) In line 500 of file
c:\workspace\py-pip-workspaces\rasa2-examples\.venv\lib\site-packages\rasa\cli\x.py:and here is the traceback after that one-line change
To sum it up there seems to be an issue with an invalid handle that occurs even if the
domain_pathissue is dealt with correctly.I upgraded rasa to 2.2.2 and now getting error shown in picture
Spent my morning debugging this and it was driving me crazy. I can confirm that downgrading to Rasa 2.1 fixes Rasa X.
Is there a way to ensure the version incompatibility between Rasa and Rasa X doesn’t happen again in the future? I believe this happened with the previous version as well, and as a newcomer, it was very frustrating to debug.