BrokenPipeError: [WinError 232] Канал закрывается при миграции на версии rasa

В настоящее время я перемещаю чат-бота с rasa_core 0.10 до 0.12. Я должен был удалить некоторые epochs или же batch_size от .train() методы, но теперь я почти на грани диалога с моим ботом, но я столкнулся с другой проблемой: BrokenPipeError: [WinError 232] The pipe is being closed и исключение в потоке, которое заканчивается 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__

Есть ли у вас какие-либо идеи?

Я использую Windows10

0 ответов

Другие вопросы по тегам