# Rasa x Error on reading from the event loop self pipe

**URL:** <https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126>\
**Category:** Rasa Open Source\
**Created:** [May 31, 2021, 10:12am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126 "2021-05-31T10:12:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranathi148](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranathi148/32/14652_2.png) [@Pranathi148](https://forum.rasa.com/u/Pranathi148)\
**Post date:** [May 31, 2021, 10:12am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/1 "2021-05-31T10:12:36Z")

</div>

@koaning

These are the steps I follwed for rasa x installation:

```auto
pip3 install --use-feature=2020-resolver rasa-x --extra-index-url https://pypi.rasa.com/simple
rasa x

```

Now I’m getting this error:

```auto
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\ap086515\anaconda3\envs\renv\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\ap086515\anaconda3\envs\renv\lib\asyncio\proactor_events.py", line 768, in _loop_self_reading
    f.result() # may raise
  File "c:\users\ap086515\anaconda3\envs\renv\lib\asyncio\windows_events.py", line 808, in _poll
    value = callback(transferred, key, ov)
  File "c:\users\ap086515\anaconda3\envs\renv\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
2021-05-31 15:39:11 WARNING rasax.community.services.insights.insight_service - No local evaluation result files found.
2021-05-31 15:39:18 ERROR concurrent.futures - exception calling callback for <Future at 0x210cc8ff6d0 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\ap086515\anaconda3\envs\renv\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\ap086515\anaconda3\envs\renv\lib\socket.py", line 918, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

```

Can you please help with this?

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [May 31, 2021, 12:21pm UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/2 "2021-05-31T12:21:51Z")

</div>

That’s strange. Could you give us the versions?

```auto
rasa --version

```

---

<div class="post-metadata">

**Author:** ![Pranathi148](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranathi148/32/14652_2.png) [@Pranathi148](https://forum.rasa.com/u/Pranathi148)\
**Post date:** [June 1, 2021, 4:00am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/3 "2021-06-01T04:00:01Z")

</div>

Rasa Version : 2.6.3 Minimum Compatible Version: 2.6.0 Rasa SDK Version : 2.6.0 Rasa X Version : 0.40.1 Python Version : 3.8.5 Operating System : Windows-10-10.0.19041-SP0

---

<div class="post-metadata">

**Author:** ![Pranathi148](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranathi148/32/14652_2.png) [@Pranathi148](https://forum.rasa.com/u/Pranathi148)\
**Post date:** [June 1, 2021, 9:09am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/4 "2021-06-01T09:09:35Z")

</div>

@koaning , any idea why I’m getting these errors and how to resolve them?

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [June 1, 2021, 10:20am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/5 "2021-06-01T10:20:59Z")

</div>

Looking at the error it seems to be a windows bug. It seems the [ipython folks](https://github.com/ipython/ipython/issues/12049) also ran into this issue. The issue doesn’t seem fixed but there is a suggestion that you can fix it by upgrading the prompt-toolkit library:

```auto
pip install -U prompt-toolkit

```

I suppose that might be worth a try. I don’t 100% know if Rasa depends on it though. But it feels like there’s a package somewhere in the chain that should be upgraded.

---

<div class="post-metadata">

**Author:** ![Pranathi148](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranathi148/32/14652_2.png) [@Pranathi148](https://forum.rasa.com/u/Pranathi148)\
**Post date:** [June 14, 2021, 11:32am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/6 "2021-06-14T11:32:47Z")

</div>

Thank you! Rasa x started running.

How can show images in rasa x and how can I connect rasa x to my database? Can you help me with this?

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [June 14, 2021, 12:35pm UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/7 "2021-06-14T12:35:12Z")

</div>

It depends a bit with what you mean by “connect Rasa X to my database”. Do you want to connect Rasa X to your database or do you want to have a custom action communicating with your database?

In terms of images, you can add an images as a response by pointing to the URL of the image. It’s documented [here](https://rasa.com/docs/rasa/responses/#images).

---

<div class="post-metadata">

**Author:** ![Pranathi148](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranathi148/32/14652_2.png) [@Pranathi148](https://forum.rasa.com/u/Pranathi148)\
**Post date:** [June 14, 2021, 12:37pm UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/8 "2021-06-14T12:37:11Z")

</div>

custom action communicating with my database.

---

<div class="post-metadata">

**Author:** ![Pranathi148](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranathi148/32/14652_2.png) [@Pranathi148](https://forum.rasa.com/u/Pranathi148)\
**Post date:** [June 15, 2021, 7:33am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/9 "2021-06-15T07:33:05Z")

</div>

@koaningHow to have a custom action communicating with my database?

---

<div class="post-metadata">

**Author:** ![koaning](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/koaning/32/6626_2.png) [@koaning](https://forum.rasa.com/u/koaning)\
**Post date:** [June 15, 2021, 7:53am UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/10 "2021-06-15T07:53:12Z")

</div>

That **really** depends on your database. Custom actions allow you to write python code to handle any action you can write in python. This video over [here](https://www.youtube.com/watch?v=rvHg7N8ux2I) demonstrates the basic usage.

---

<div class="post-metadata">

**Author:** ![mglall](https://avatars.discourse-cdn.com/v4/letter/m/7feea3/32.png) [@mglall](https://forum.rasa.com/u/mglall)\
**Post date:** [September 16, 2021, 11:43pm UTC](https://forum.rasa.com/t/rasa-x-error-on-reading-from-the-event-loop-self-pipe/44126/11 "2021-09-16T23:43:41Z")

</div>

i facing the same issue can you pleas tell me how you fix it
