UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1596: character maps to <undefined>

when i use type python -m rasa x ,the output is Traceback (most recent call last): File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\cli\x.py”, line 494, in run_locally local.main( File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasax\community\local.py”, line 241, in main _initialize_with_local_data( File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasax\community\local.py”, line 163, in _initialize_with_local_data loop.run_until_complete( File “C:\Program Files\Anaconda3\lib\asyncio\base_events.py”, line 616, in run_until_complete return future.result() File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasax\community\initialise.py”, line 360, in inject_files_from_disk story_files = rasa.shared.data.get_data_files( File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\shared\data.py”, line 152, in get_data_files new_data_files = _find_data_files_in_directory(path, filter_predicate) File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\shared\data.py”, line 172, in _find_data_files_in_directory if filter_property(full_path): File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\shared\data.py”, line 220, in is_story_file return YAMLStoryReader.is_stories_file( File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\shared\core\training_data\story_reader\yaml_story_reader.py”, line 163, in is_stories_file return rasa.shared.data.is_likely_yaml_file(file_path) and cls.is_key_in_yaml( File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\shared\core\training_data\story_reader\yaml_story_reader.py”, line 183, in is_key_in_yaml return any( File “C:\Users\MSA2SGH\AppData\Roaming\Python\Python38\site-packages\rasa\shared\core\training_data\story_reader\yaml_story_reader.py”, line 183, in return any( File “C:\Program Files\Anaconda3\lib\encodings\cp1252.py”, line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x81 in position 1596: character maps to what should i do to fix it

It solved by update rasa to version 2.4.3

2 Likes

Yeah, 2.4.0 and 2.4.1 had problems with non-Latin characters:

yes,thank you for your reply

1 Like