Interactive training giving chat history output as bytes

I recently upgraded the version of the following packages : rasa-core==0.14.1 rasa-core-sdk==0.13.1 rasa-nlu==0.15.0

The interactive training chat history was working perfectly fine previously, but now it gives the output as follows:

Chat History

b’ # \x1b[94mBot \x1b[39m \x1b[91mYou \x1b[39m \n\x1b(0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\x1b(B\n 1 \x1b[96maction_listen\x1b[39m \n\x1b(0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\x1b(B\n 2 \x1b[91mpolicy document for 334943\x1b[39m \n intent: policy_document 0.95 \n\x1b(0qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\x1b(B\n 3 slot{“policy_number”: “334943”} \n \x1b[96maction_add_intent_to_slot\x1b[97m 1.00\x1b[39m \n \x1b[96maction_reset_requested_slot\x1b[97m 1.00\x1b[39m \n slot{“requested_slot”: null} \n \x1b[96maction_policy_document\x1b[97m 1.00\x1b[39m \n slot{“policy_number”: “334943”} \n \x1b[94mpolicy is active for policy number 334943\x1b[39m ’

Thanks.

2 Likes

Same for me

Same for me. Please help.

Thanks.

Need it really fast. Please help.

And please switch on the A/C.

Thanks

I figured out the fix …

Change the print(table.encode(“utf-8”)) to print(table) in rasa_core/training/interactive.py

Thanks a lot. Saved my day.

Hey guys, thanks for pointing out this bug, it was fixed in version 0.14.3 of rasa_core :slight_smile:

1 Like