Rasa X not running , Following Error

RASA X not running

Error: 2021-09-17 09:23:01 WARNING rasax.community.services.insights.insight_service - No local evaluation result files found. 2021-09-17 09:23:03 ERROR concurrent.futures - exception calling callback for <Future at 0x2727a550188 state=finished raised gaierror> Traceback (most recent call last): File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\concurrent\futures\thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\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\Pravin.Rajput.conda\envs\installingrasa\lib\concurrent\futures_base.py”, line 324, in _invoke_callbacks callback(self) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\asyncio\futures.py”, line 365, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\asyncio\base_events.py”, line 732, in call_soon_threadsafe self._check_closed() File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\asyncio\base_events.py”, line 479, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed 2021-09-17 09:23:03 ERROR concurrent.futures - exception calling callback for <Future at 0x2727a5503c8 state=finished returned list> Traceback (most recent call last): File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\concurrent\futures_base.py”, line 324, in _invoke_callbacks callback(self) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\asyncio\futures.py”, line 365, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\asyncio\base_events.py”, line 732, in call_soon_threadsafe self._check_closed() File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\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\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasa\cli\x.py”, line 502, in run_locally domain_path=domain_path, File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasax\community\local.py”, line 257, in main common_utils.run_in_loop(model_service.discover_models()) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasax\community\utils\common.py”, line 900, in run_in_loop return loop.run_until_complete(coro) File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\asyncio\base_events.py”, line 583, in run_until_complete return future.result() File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasax\community\services\model_service.py”, line 821, in discover_models await model_service.discover_models() File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\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\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasax\community\services\model_service.py”, line 133, in _run_loop await self._discover_models() File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\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\Pravin.Rajput.conda\envs\installingrasa\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\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasax\community\services\model_service.py”, line 160, in minimum_compatible_version info = await stack_service.version() File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\rasax\community\services\stack_service.py”, line 115, in version timeout=timeout_in_seconds, File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\lib\site-packages\aiohttp\client.py”, line 619, in _request break File “C:\Users\Pravin.Rajput.conda\envs\installingrasa\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/.

@smart Please share rasa --version whilst typing in conda environment?

@smart Can you please share? If the rasa-x was greater then the suggested version i.e 0.39.3 then only follow the below mention solution.

@smart

Can I request to start the fresh approach

create a fresh conda environment with python 3.7 or 3.8

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

and follow these step

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

check version rasa --version its install or not

then

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 files of events and rasa if showing alembic error.

Good luck! I hope this will solve your issue.

@smart Hey, I hope you doing fine. I hope your issue is solved or you still facing some issues? do let us know.