Unable to start rasa x due to warnings and errors

Hi All

I tried executing rasa x command I got the following warnings and unable to start rasa. Can please someone help me on this.

My rasa --versions details are given below :

Rasa Version      :         2.8.14
Minimum Compatible Version: 2.8.9
Rasa SDK Version  :         2.8.3
Rasa X Version    :         0.42.0
Python Version    :         3.8.0
Operating System  :         Windows-10-10.0.18362-SP0
Python Path       :         c:\users\projects\rasa_coach\venv\scripts\python.exe
(venv) PS C:\Users\Projects\RASA_Coach> rasa x
c:\users\Projects\rasa_coach\venv\lib\site-packages\rasa\shared\core\slots.py:311: FutureWarning: UnfeaturizedSlot is deprecated and will be removed in R
asa Open Source 3.0. Please change the type and configure the 'influence_conversation' flag for slot 'requested_slot' instead.
  rasa.shared.utils.io.raise_warning(
Starting Rasa X in local mode... �
2022-06-30 23:44:10 ERROR    asyncio  - Error on reading from the event loop self pipe                                            
loop: <ProactorEventLoop running=True closed=False debug=False>                                                                   
Traceback (most recent call last):                                                                                                
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 453, in finish_recv        
    return ov.getresult()                                                                                                         
OSError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request              
                                                                                                                                  
During handling of the above exception, another exception occurred:                                                               
                                                                                                                                  
Traceback (most recent call last):                                                                                                
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result()  # may raise                                                                                                       
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 808, in _poll              
    value = callback(transferred, key, ov)                                                                                        
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 457, in finish_recv        
    raise ConnectionResetError(*exc.args)                                                                                         
ConnectionResetError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request 
2022-06-30 23:44:15 WARNING  rasax.community.services.insights.insight_service  - No new evaluation results.
Traceback (most recent call last):                                                                               
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasa\cli\x.py", line 496, in run_locally
    local.main(
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\local.py", line 257, in main
    common_utils.run_in_loop(model_service.discover_models())
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\utils\common.py", line 900, in run_in_loop
    return loop.run_until_complete(coro)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 608, in run_until_complete
    return future.result()
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 821, in discover_models
    await model_service.discover_models()
  File "c:\users\Projects\rasa_coach\venv\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\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 133, in _run_loop
    await self._discover_models()
  File "c:\users\Projects\rasa_coach\venv\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\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 174, in _retry_fetching_minimum_compatible_v
ersion
    minimum_version = await self.minimum_compatible_version()
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 160, in minimum_compatible_version
    info = await stack_service.version()
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\stack_service.py", line 107, in version
    response = await session.get(
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\aiohttp\client.py", line 619, in _request
    break
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\aiohttp\helpers.py", line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.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 poppe
d up.
If you need help fixing the issue visit our forum: http://forum.rasa.com/.
2022-06-30 23:44:23 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1b4a4d5dbb0 state=finished raised gaierror>
Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\socket.py", line 914, 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\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2022-06-30 23:44:23 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1b4a6c27d30 state=finished returned list>
Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2022-06-30 23:44:23 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1b4a50ff070 state=finished returned list>
Traceback (most recent call last):
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "C:\Users\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

Thanks in Advanced

Hi All,

I read many articles about this issue on google and got to know that by installing prompt-toolkit it will solve the loop issue. Event loop is closed has been resolved just by installing this library

python -m pip install -U prompt-toolkit~=2.0

But still unable to start rasa x in my laptop and getting below errors :

(venv) PS C:\Users\Projects\RASA_Coach> rasa x            
c:\users\Projects\rasa_coach\venv\lib\site-packages\rasa\shared\core\slots.py:311: FutureWarning: UnfeaturizedSlot is deprecated and will be removed in R
asa Open Source 3.0. Please change the type and configure the 'influence_conversation' flag for slot 'requested_slot' instead.
  rasa.shared.utils.io.raise_warning(
Starting Rasa X in local mode... �
2022-07-01 07:38:13 ERROR    asyncio  - Error on reading from the event loop self pipe                                            
loop: <ProactorEventLoop running=True closed=False debug=False>                                                                   
Traceback (most recent call last):                                                                                                
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 453, in finish_recv        
    return ov.getresult()                                                                                                         
OSError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request              
                                                                                                                                  
During handling of the above exception, another exception occurred:                                                               
                                                                                                                                  
Traceback (most recent call last):                                                                                                
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result()  # may raise                                                                                                       
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 808, in _poll              
    value = callback(transferred, key, ov)                                                                                        
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\windows_events.py", line 457, in finish_recv        
    raise ConnectionResetError(*exc.args)                                                                                         
ConnectionResetError: [WinError 995] The I/O operation has been aborted because of either a thread exit or an application request 
2022-07-01 07:38:18 WARNING  rasax.community.services.insights.insight_service  - No new evaluation results.
2022-07-01 07:38:24 ERROR    concurrent.futures  - exception calling callback for <Future at 0x19043c87b50 state=finished raised gaierror>
Traceback (most recent call last):                                                                                                        
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\socket.py", line 914, 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\614340875\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2022-07-01 07:38:24 ERROR    concurrent.futures  - exception calling callback for <Future at 0x19043c870d0 state=finished returned list>
Traceback (most recent call last):
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\concurrent\futures\_base.py", line 328, in _invoke_callbacks
    callback(self)
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\futures.py", line 371, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 756, in call_soon_threadsafe
    self._check_closed()
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Traceback (most recent call last):
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasa\cli\x.py", line 496, in run_locally
    local.main(
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\local.py", line 257, in main
    common_utils.run_in_loop(model_service.discover_models())
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\utils\common.py", line 900, in run_in_loop
    return loop.run_until_complete(coro)
  File "C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\base_events.py", line 608, in run_until_complete
    return future.result()
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 821, in discover_models
    await model_service.discover_models()
  File "c:\users\Projects\rasa_coach\venv\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\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 133, in _run_loop
    await self._discover_models()
  File "c:\users\Projects\rasa_coach\venv\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\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 174, in _retry_fetching_minimum_compatible_v
ersion
    minimum_version = await self.minimum_compatible_version()
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\model_service.py", line 160, in minimum_compatible_version
    info = await stack_service.version()
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\rasax\community\services\stack_service.py", line 107, in version
    response = await session.get(
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\aiohttp\client.py", line 619, in _request
    break
  File "c:\users\Projects\rasa_coach\venv\lib\site-packages\aiohttp\helpers.py", line 656, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

2022-07-01 07:38:24 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending name='Task-8' coro=<TCPConnector._resolve_host() running at c:\users\Projects\rasa_coach\venv\lib\site-packages\aiohttp\connector.py:
865> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at C:\Users\614340875\AppData\Local\Programs\Python\Python38\lib\asyncio\futures.py:357,
 <TaskWakeupMethWrapper object at 0x0000019043C87430>()]> cb=[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\Projects\rasa_
coach\venv\lib\site-packages\aiohttp\connector.py:1002]>
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 poppe
d up.
If you need help fixing the issue visit our forum: http://forum.rasa.com/.
WARNING:rasax.community.telemetry:An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded
 with url: /v1/track (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002A3DF0AA670>, 'Connection to api.segment.io timed out. (conne
ct timeout=2)'))
WARNING:rasax.community.telemetry:An error occured when trying to send the telemetry event: HTTPSConnectionPool(host='api.segment.io', port=443): Max retries exceeded
 with url: /v1/track (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x000002A3DF0AAEB0>, 'Connection to api.segment.io timed out. (conne
ct timeout=2)'))

Can please someone help me on this.