Facing issue with Rasa X

Hi,

I created a new Virtual Environment and made it as base environment, then followed below Steps

  • pip install --upgrade pip==20.2
  • pip install -U rasa-x --extra-index-url Simple Index
  • pip install rasa[spacy]
  • python -m spacy download en_core_web_md
  • rasa init --no-prompt

Then I luanched “rasa x” and I’m getting below error (I repeated the steps by creating different virtual environment in different folder…but no luck)

(Cap4) PS C:\Users\Capstone4> rasa x Starting Rasa X in local mode… :rocket: fatal: bad revision ‘HEAD’ 2021-10-24 23:18:23 WARNING rasax.community.services.insights.insight_service - No local evaluation result files found. 2021-10-24 23:18:25 ERROR concurrent.futures - exception calling callback for <Future at 0x231fcfafc88 state=finished raised gaierror> Traceback (most recent call last): File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\concurrent\futures\thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\socket.py”, line 752, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\concurrent\futures_base.py”, line 324, in _invoke_callbacks callback(self) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\futures.py”, line 365, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\base_events.py”, line 732, in call_soon_threadsafe self._check_closed() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\base_events.py”, line 479, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed 2021-10-24 23:18:25 ERROR concurrent.futures - exception calling callback for <Future at 0x231fcfafec8 state=finished returned list> Traceback (most recent call last): File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\concurrent\futures_base.py”, line 324, in _invoke_callbacks callback(self) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\futures.py”, line 365, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\base_events.py”, line 732, in call_soon_threadsafe self._check_closed() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\base_events.py”, line 479, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed Traceback (most recent call last): File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasa\cli\x.py”, line 502, in run_locally domain_path=domain_path, File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\local.py”, line 257, in main common_utils.run_in_loop(model_service.discover_models()) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\utils\common.py”, line 900, in run_in_loop return loop.run_until_complete(coro) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\asyncio\base_events.py”, line 583, in run_until_complete return future.result() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\model_service.py”, line 821, in discover_models await model_service.discover_models() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\model_service.py”, line 147, in discover_models await _run_loop(max_retries, sleep_in_seconds) File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\model_service.py”, line 133, in _run_loop await self._discover_models() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\model_service.py”, line 185, in _discover_models minimum_version = await self._retry_fetching_minimum_compatible_version() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\model_service.py”, line 174, in _retry_fetching_minimum_compatible_version minimum_version = await self.minimum_compatible_version() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\model_service.py”, line 160, in minimum_compatible_version info = await stack_service.version() File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\rasax\community\services\stack_service.py”, line 115, in version timeout=timeout_in_seconds, File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\aiohttp\client.py”, line 619, in _request break File “c:\users\selvakumar raj\anaconda3\envs\cap4\lib\site-packages\aiohttp\helpers.py”, line 656, in exit raise asyncio.TimeoutError from None concurrent.futures._base.TimeoutError

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: http://forum.rasa.com/.

Please advise how to fix this.

Rasa Version      :         2.8.12
Minimum Compatible Version: 2.8.9
Rasa SDK Version  :         2.8.2
Rasa X Version    :         0.42.4
Python Version    :         3.7.6
Operating System  :         Windows-10-10.0.19041-SP0

@rsklearner Please follow these steps for the installation of ROS and Rasa X :slight_smile:

Note: You can ignore few steps, if you already performed it!

Please install Anaconda from Anaconda | Individual Edition , then create the conda environment using the following command

  1. conda create -n rasa3 python=3.8
  2. conda activate rasa 3

PS: If you using Linux, check the environment for the same.

Note: I’d recommend to create a fresh environment if not you can proceed with next steps:

For Rasa Open Source:

`pip install rasa==2.8.1`
`pip install rasa-sdk==2.8.1'

check version rasa --version its install or not

For Installing basic project:

rasa init

then if you need

For Rasa-X Installation

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

check rasa version rasa --version its install or not

You will see some error : ImportError: cannot import name ‘RowProxy’ from ‘sqlalchemy.engine’ Install

pip install SQLAlchemy==1.3.22 should fix it

If sanic related error: pip install sanic-jwt==1.6.0

delete .db (events and rasa ) if is showing alembic issue.

Note: If you not able to install you can downgrade the pip version to 20.2

pip install pip==20.2

If you have any error in-between please share with us.

Note: You will see the Event Loop Close error in the terminal, you can ignore that, its an persistent issue with Rasa X and team is working on it.

I hope this will solve your issue. Good Luck!

1 Like

@nik202

Thank you! I followed all the Steps and one extra step of downgrading pip to 20.2 and then it worked fine. Now I could launch Rasa X properly and it opens in my browser.

@rsklearner Thanks for a valuable feedback :slight_smile:, happy to help you :slight_smile:

1 Like