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

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

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?

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.