# BrokenPipeError: \[WinError 232\] The pipe is being closed when migrating

**URL:** <https://forum.rasa.com/t/brokenpipeerror-winerror-232-the-pipe-is-being-closed-when-migrating/3121>\
**Category:** Getting Started with Rasa\
**Created:** [November 28, 2018, 10:59pm UTC](https://forum.rasa.com/t/brokenpipeerror-winerror-232-the-pipe-is-being-closed-when-migrating/3121 "2018-11-28T22:59:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoinecomp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/antoinecomp/32/1874_2.png) [@antoinecomp](https://forum.rasa.com/u/antoinecomp)\
**Post date:** [November 28, 2018, 10:59pm UTC](https://forum.rasa.com/t/brokenpipeerror-winerror-232-the-pipe-is-being-closed-when-migrating/3121/1 "2018-11-28T22:59:12Z")

</div>

I’m currently migrating from rasa\_core 0.10 to 0.12. I had to delete some `epochs` or `batch_size` from `.train()` methods but now I’m nearly on the point of dialoging again with my bot but I’m encountering another issue: `BrokenPipeError: [WinError 232] The pipe is being closed` and an exception in a thread that ends up with `AttributeError: __enter__ `

```
(cha_env36) C:\Users\antoi\Documents\Programming\Nathalie\Chatbot_RASA_room_reservation>python dialogue_management_model.py
...
Epoch 99/100
90/90 [==============================] - 0s 222us/step - loss: 0.5290 - acc: 0.8889 - val_loss: 0.8006 - val_acc: 0.8261
Epoch 100/100
90/90 [==============================] - 0s 211us/step - loss: 0.5154 - acc: 0.9000 - val_loss: 0.7957 - val_acc: 0.7826
Bot loaded. Type a message and press enter (use '/stop' to exit):
Hello !
C:\Users\antoi\Documents\Programming\Nathalie\Chatbot_RASA_room_reservation\cha_env36\lib\site-packages\sklearn\preprocessing\label.py:151: DeprecationWarning: The truth value of an empty array is ambiguous. Returning False, but in future this will result in an error. Use `array.size > 0` to check that an array is not empty.
  if diff:
127.0.0.1 - - [2018-11-28 23:36:40] "POST /webhooks/rest/webhook?stream=true&token= HTTP/1.1" 200 153 0.891224
Traceback (most recent call last):
  File "C:\Python36\lib\multiprocessing\queues.py", line 236, in _feed
    send_bytes(obj)
  File "C:\Python36\lib\multiprocessing\connection.py", line 200, in send_bytes
    self._send_bytes(m[offset:offset + size])
  File "C:\Python36\lib\multiprocessing\connection.py", line 280, in _send_bytes
    ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True)
BrokenPipeError: [WinError 232] The pipe is being closed
Exception in thread Thread-7:
Traceback (most recent call last):
  File "C:\Python36\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Python36\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\antoi\Documents\Programming\Nathalie\Chatbot_RASA_room_reservation\cha_env36\lib\site-packages\rasa_core\channels\console.py", line 110, in record_messages
    for response in bot_responses:
  File "C:\Users\antoi\Documents\Programming\Nathalie\Chatbot_RASA_room_reservation\cha_env36\lib\site-packages\rasa_core\channels\console.py", line 67, in send_message_receive_stream
    stream=True) as r:
AttributeError: __enter__

```

Do you have any idea ?

I’m using Windows10

---

<div class="post-metadata">

**Author:** ![MetcalfeTom](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/metcalfetom/32/1422_2.png) [@MetcalfeTom](https://forum.rasa.com/u/MetcalfeTom)\
**Post date:** [December 5, 2018, 12:56pm UTC](https://forum.rasa.com/t/brokenpipeerror-winerror-232-the-pipe-is-being-closed-when-migrating/3121/2 "2018-12-05T12:56:40Z")

</div>

Hi @antoinecomp,

Not sure is this is a threading error or a formatting error. What command did you use to run this and what ought the bot utter in response to this message?

---

<div class="post-metadata">

**Author:** ![antoinecomp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/antoinecomp/32/1874_2.png) [@antoinecomp](https://forum.rasa.com/u/antoinecomp)\
**Post date:** [January 7, 2019, 2:03pm UTC](https://forum.rasa.com/t/brokenpipeerror-winerror-232-the-pipe-is-being-closed-when-migrating/3121/3 "2019-01-07T14:03:32Z")

</div>

> [@antoinecomp](#):
>
> python dialogue\_management\_model.py

Hello Tom, happy new year and thanks for your help. `I only launched python dialogue_management_model.py` and it had to answer with a greeting. Yet if I remembered well it was an error with the migration process.
