UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 1300: invalid start byte make: *** [train-core] Error 1

I am folIowing this tutorial: GitHub - RasaHQ/starter-pack-rasa-stack: 🎒Everything you need to build your first contextual chatbot with the open source Rasa Stack - includes files and training data

with updated nlu data and when i am running :make train-core, i am receiving below traceback when trying to train my rasa-core model

Traceback (most recent call last): File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\runpy.py”, line 85, in _run_code exec(code, run_globals) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\train.py”, line 253, in additional_args) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\train.py”, line 164, in do_default_training kwargs=additional_arguments) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\train.py”, line 77, in train policies=policies) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\agent.py”, line 218, in init self.domain = self._create_domain(domain) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\agent.py”, line 667, in _create_domain return Domain.load(domain) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\domain.py”, line 122, in load return cls.from_yaml(read_file(filename)) File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\site-packages\rasa_core\utils.py”, line 357, in read_file return f.read() File “C:\Users\mrawat\AppData\Local\Programs\Python\Python37\lib\codecs.py”, line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x96 in position 1300: invalid start byte make: *** [train-core] Error 1

Can someone help please?

1 Like

hey @mrawat can you show your nlu data, might be there may be issue in your nlu.md file

Check all files that you edited are with encoding UTF-8, I had this problem and was because the encoding was changed by the editor.

I used Notepad++ to convert back from ANSI to UTF-8 and worked normally again.