Error running rasa x - <Future at 0x2b5686c4400 state=finished raised gaierror> on Windows

Hi, I’ve been getting this error when I run rasa x

ERROR concurrent.futures - exception calling callback for <Future at 0x2b5686c4400 state=finished raised gaierror>

This is what I get when I type rasa --version

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

According to the compatibility matrix, I see that the rasa x I have installed is compatible with rasa version.

I have tried out different suggestions from other forum members in other such similar posts, but nothing seems to be working. Can someone help me with this?

1 Like

@lis Hello Lisa, I have seen your other post regarding Rasa X, if you are planning to use rasa X for CDD, then local mode installation will not work for your case.

Rasa X is intended to be deployed on a server and not to a personal/local machine. Deploying on a server is recommended because Rasa X is designed to stay up continuously, and not to be frequently stopped or restarted.

Integrated Version Control encourages best practices by integrating itself into your existing development workflows. It lets you automate data synchronization with your Git repository, annotate new data and push those changes with Git.

In order to connect Rasa X with your assistant’s Git repository, you will need two things:

  1. A Rasa X instance running in server mode (local mode does not support Integrated Version Control)
  2. A Git repository containing a project in the default Rasa Open Source project layout

If you want to explore the Rasa X in local mode and having issue in installation, please do let me know; I will provide the clean installation steps.

For current installation issue, can you share me the screenshots:

  1. Run rasa --version in your active environment

  2. Run rasa x and share the error screenshot please, a complete error

@lis I hope you seen the above section of post? can you confirm are you able to see the rasa x in default web browser?

@nik202 Yes, I’m trying to have a local installation to have a look at how rasa x UI works. And no, I’m not able to see rasa x in the default web browser. It exits with the above error message

@lis Right, if you are now not concern about the rasa CDD and GitHub connectivity, I will recommend you the following steps, and please stick on that and you will able to install rasa x with the ease.

For Installation please follow these steps:

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

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

:wink: But I’d recommend starting the fresh installation without seeing any video, please.

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

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

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!

PS: First try install basic mood bot of rasa, talk and then go to other project.

I’m sure you will able to install and run rasa x with ease :wink: If not tag me :slight_smile:

3 Likes

Thanks a lot @nik202, this works for me.

@lis Great! :+1: Congratulations

Valuable links and resources for your reference

  1. RasaMasterclass
  2. Conversational AI with Rasa - Video Series [Latest]
  3. Rasa for Beginners
  4. Rasa Certification Workshop
  5. Rasa Advanced Custom Actions, Forms, & Responses Workshop No-longer accepting enrolments
  6. Rasa Advanced Deployment Workshop
  7. Rasa Youtube Channel Please subscribe and hit the bell icon for notification.
  8. Rasa Github Mini Project
  9. Rasa Masterclass Handbook
  10. Hardcopy Book : Conversational AI with Rasa

I hope these links will help you to learn Rasa!

1 Like

This is a life saver…Thank you so much… @nik202

Although It’s working but I still get some errors like RuntimeError: Event loop is closed 2022-03-15 02:19:59 ERROR concurrent.futures - exception calling callback for <Future at 0x185f3bf3e08 state=finished returned list>

RuntimeError: Event loop is closed 2022-03-15 02:20:01 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<TCPConnector._resolve_host() done, defined at C:\Users\zulfi\anaconda3\envs\mark2\lib\site-packages\aiohttp\connector.py:806> wait_for=<Future pending cb=[_chain_future.._call_check_cancel() at C:\Users\zulfi\anaconda3\envs\mark2\lib\asyncio\futures.py:351, <TaskWakeupMethWrapper object at 0x00000185F3CFC8E8>()]> cb=[TCPConnector._create_direct_connection..drop_exception() at C:\Users\zulfi\anaconda3\envs\mark2\lib\site-packages\aiohttp\connector.py:1002]>

2022-03-15 02:20:05 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<TCPConnector._resolve_host() running at C:\Users\zulfi\anaconda3\envs\mark2\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.._call_check_cancel() at C:\Users\zulfi\anaconda3\envs\mark2\lib\asyncio\futures.py:351, <TaskWakeupMethWrapper object at 0x00000185F3CFCBB8>()]> cb=[TCPConnector._create_direct_connection..drop_exception() at C:\Users\zulfi\anaconda3\envs\mark2\lib\site-packages\aiohttp\connector.py:1002]>

@Zulfiquar15 till the time you are able to chat with your bot, nothing to worries, can you share the rasa --version for a record?

@nik202 Rasa Version : 2.8.1 Minimum Compatible Version: 2.8.0 Rasa SDK Version : 2.8.1 Rasa X Version : 0.39.3 Python Version : 3.7.11 Operating System : Windows-10-10.0.22000-SP0 Python Path : C:\Users\zulfi\anaconda3\envs\mark2\python.exe

@Zulfiquar15 Thanks, I hope you are able to chat with bot right?

Oh yes…Thank you so much… @nik202

@Zulfiquar15 cool, enjoy then :slight_smile:

1 Like

I am a beginner in Rasa. With your solution i was able to install rasa x succefuly. Thank you very much @nik202 . A while after running I got the following error. Inspite the UI works well.

ERROR asyncio - Task was destroyed but it is pending! task: <Task pending name=‘Task-8’ coro=<TCPConnector._resolve_host() running at C:\ProgramData\Anaconda3\envs\Inv5\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.._call_check_cancel() at C:\ProgramData\Anaconda3\envs\Inv5\lib\asyncio\futures.py:360, <TaskWakeupMethWrapper object at 0x000001490CB4D550>()]> cb=[TCPConnector._create_direct_connection..drop_exception() at C:\ProgramData\Anaconda3\envs\Inv5\lib\site-packages\aiohttp\connector.py:1002]>

Is that an important error or i can ignore it Thank you again for your response

@Shrouf Thanks for the feedback, happy to help you. Can you share the screenshot and traceback of this Error?

@nik202 i used the same steps with the same version after running rasa x it is showing error (rasa3) C:\Users\Anshal.Khan>rasa x Starting Rasa X in local mode… :rocket: 2022-04-27 11:10:00 WARNING rasax.community.services.insights.insight_service - No local evaluation result files found. 2022-04-27 11:10:02 ERROR concurrent.futures - exception calling callback for <Future at 0x1b45f8e7a90 state=finished raised gaierror> Traceback (most recent call last): File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\concurrent\futures\thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\socket.py”, line 918, 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\Anshal.Khan.conda\envs\rasa3\lib\concurrent\futures_base.py”, line 328, in _invoke_callbacks callback(self) File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\asyncio\futures.py”, line 374, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\asyncio\base_events.py”, line 764, in call_soon_threadsafe self._check_closed() File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\asyncio\base_events.py”, line 508, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed 2022-04-27 11:10:02 ERROR concurrent.futures - exception calling callback for <Future at 0x1b45f8e7fd0 state=finished returned list> Traceback (most recent call last): File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\concurrent\futures_base.py”, line 328, in _invoke_callbacks callback(self) File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\asyncio\futures.py”, line 374, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\asyncio\base_events.py”, line 764, in call_soon_threadsafe self._check_closed() File “C:\Users\Anshal.Khan.conda\envs\rasa3\lib\asyncio\base_events.py”, line 508, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed WARNING:rasax.community.telemetry:An error occured when trying to send the telemetry event: HTTPSConnectionPool(host=‘api.segment.io’, port=443): Read timed out. (read timeout=2) 2022-04-27 11:10:17 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-153757-presto-cadence.tar.gz’. Version of model 20220412-153757-presto-cadence.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:19 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-162341-direct-hatchback.tar.gz’. Version of model 20220412-162341-direct-hatchback.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:21 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-163719-external-paper.tar.gz’. Version of model 20220412-163719-external-paper.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:26 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-164630-internal-lintel.tar.gz’. Version of model 20220412-164630-internal-lintel.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:30 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-165241-narrow-space.tar.gz’. Version of model 20220412-165241-narrow-space.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:32 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-165656-stable-tail.tar.gz’. Version of model 20220412-165656-stable-tail.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:35 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-174319-active-column.tar.gz’. Version of model 20220412-174319-active-column.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:37 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-174617-sensitive-polygon.tar.gz’. Version of model 20220412-174617-sensitive-polygon.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:39 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-175344-perfect-tower.tar.gz’. Version of model 20220412-175344-perfect-tower.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:41 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-181007-flat-strut.tar.gz’. Version of model 20220412-181007-flat-strut.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:43 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220412-182829-friendly-valid.tar.gz’. Version of model 20220412-182829-friendly-valid.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:44 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-100151-one-clarinet.tar.gz’. Version of model 20220413-100151-one-clarinet.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:46 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-113253-teal-canteen.tar.gz’. Version of model 20220413-113253-teal-canteen.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:49 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-113945-extremal-focus.tar.gz’. Version of model 20220413-113945-extremal-focus.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:52 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-115328-ragged-triplex.tar.gz’. Version of model 20220413-115328-ragged-triplex.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:54 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-124151-radioactive-trap.tar.gz’. Version of model 20220413-124151-radioactive-trap.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:10:55 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-124705-soluble-rosemary.tar.gz’. Version of model 20220413-124705-soluble-rosemary.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:11:04 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220413-134238-potential-plank.tar.gz’. Version of model 20220413-134238-potential-plank.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:11:13 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220414-132815-absolute-frame.tar.gz’. Version of model 20220414-132815-absolute-frame.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:11:16 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220414-132900-freezing-taste.tar.gz’. Version of model 20220414-132900-freezing-taste.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version. 2022-04-27 11:11:18 ERROR rasax.community.services.model_service - Could not find model at path ‘models\20220418-132853-kinetic-source.tar.gz’. Version of model 20220418-132853-kinetic-source.tar.gz version is not compatible. The model was trained with Rasa version 0.0.0 but the current Rasa requires a minimum version of 2.8.0. Please retrain your model with a more recent Rasa version.

Hallo @nik202, thank you for response. here is a screenshot of this error

@nik202 this is my screen shot

@anshal have you read the error? delete all the previous trained models and re-train the model.

@Shrouf are you getting any issues whilst chatting with the bot in rasa x?