UnicodeEncodeError: 'charmap' codec can't encode character '\u1edf' in position 70: character maps to <undefined>

Whenever I input any message in rasa shell --debug, it keeps showing me this warning. Although it doesn’t affect the process, it prints a really long message

Bot loaded. Type a message and press enter (use ‘/stop’ to exit): Your input → tìm chi nhánh ở Hà Nội

2019-07-27 09:15:23 DEBUG rasa.core.agent - Created a new lock for conversation ‘default’ 2019-07-27 09:15:23 DEBUG rasa.core.tracker_store - Creating a new tracker for id ‘default’. 2019-07-27 09:15:23 DEBUG rasa.core.processor - Received user message ‘tìm chi nhánh ở Hà Nội’ with intent ‘{‘name’: ‘buu_cuc_gan_nhat’, ‘confidence’: 0.884937047958374}’ and entities ‘[{‘start’: 16, ‘end’: 22, ‘value’: ‘hà nội’, ‘entity’: ‘local_address’, ‘confidence’: 0.9651796447308312, ‘extractor’: ‘CRFEntityExtractor’}]’ — Logging error — Traceback (most recent call last): File “c:\anaconda3\lib\logging_init_.py”, line 1037, in emit stream.write(msg + self.terminator) File “c:\anaconda3\lib\encodings\cp1252.py”, line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u1edf’ in position 70: character maps to Call stack: File “c:\anaconda3\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\anaconda3\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Anaconda3\Scripts\rasa.exe_main.py", line 9, in sys.exit(main()) File "c:\anaconda3\lib\site-packages\rasa_main.py", line 76, in main cmdline_arguments.func(cmdline_arguments) File “c:\anaconda3\lib\site-packages\rasa\cli\shell.py”, line 102, in shell rasa.cli.run.run(args) File “c:\anaconda3\lib\site-packages\rasa\cli\run.py”, line 119, in run rasa.run(**vars(args)) File “c:\anaconda3\lib\site-packages\rasa\run.py”, line 54, in run **kwargs File “c:\anaconda3\lib\site-packages\rasa\core\run.py”, line 179, in serve_application app.run(host=“0.0.0.0”, port=port) File “c:\anaconda3\lib\site-packages\sanic\app.py”, line 1096, in run serve(**server_settings) File “c:\anaconda3\lib\site-packages\sanic\server.py”, line 770, in serve loop.run_forever() File “c:\anaconda3\lib\asyncio\base_events.py”, line 539, in run_forever self._run_once() File “c:\anaconda3\lib\asyncio\base_events.py”, line 1767, in _run_once handle._run() File “c:\anaconda3\lib\asyncio\events.py”, line 88, in _run self._context.run(self._callback, *self._args) File “c:\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 387, in on_message_wrapper await on_new_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 65, in handler await app.agent.handle_message(*args, **kwargs) File “c:\anaconda3\lib\site-packages\rasa\core\agent.py”, line 478, in handle_message return await processor.handle_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 80, in handle_message tracker = await self.log_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 128, in log_message await self._handle_message_with_tracker(message, tracker) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 296, in _handle_message_with_tracker parse_data = await self._parse_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 284, in parse_message message.text, parse_data[“intent”], parse_data[“entities”] Message: “Received user message ‘tìm chi nhánh ở Hà Nội’ with intent ‘{‘name’: ‘buu_cuc_gan_nhat’, ‘confidence’: 0.884937047958374}’ and entities ‘[{‘start’: 16, ‘end’: 22, ‘value’: ‘hà nội’, ‘entity’: ‘local_address’, ‘confidence’: 0.9651796447308312, ‘extractor’: ‘CRFEntityExtractor’}]’” Arguments: () 2019-07-27 09:15:23 DEBUG rasa.core.processor - Current slot values: destination_address: None from_address: None local_address: hà nội order_code: None requested_slot: None weight: None — Logging error — Traceback (most recent call last): File "c:\anaconda3\lib\logging_init.py", line 1037, in emit stream.write(msg + self.terminator) File “c:\anaconda3\lib\encodings\cp1252.py”, line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u1ed9’ in position 125: character maps to Call stack: File “c:\anaconda3\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\anaconda3\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Anaconda3\Scripts\rasa.exe_main.py", line 9, in sys.exit(main()) File "c:\anaconda3\lib\site-packages\rasa_main.py", line 76, in main cmdline_arguments.func(cmdline_arguments) File “c:\anaconda3\lib\site-packages\rasa\cli\shell.py”, line 102, in shell rasa.cli.run.run(args) File “c:\anaconda3\lib\site-packages\rasa\cli\run.py”, line 119, in run rasa.run(**vars(args)) File “c:\anaconda3\lib\site-packages\rasa\run.py”, line 54, in run **kwargs File “c:\anaconda3\lib\site-packages\rasa\core\run.py”, line 179, in serve_application app.run(host=“0.0.0.0”, port=port) File “c:\anaconda3\lib\site-packages\sanic\app.py”, line 1096, in run serve(**server_settings) File “c:\anaconda3\lib\site-packages\sanic\server.py”, line 770, in serve loop.run_forever() File “c:\anaconda3\lib\asyncio\base_events.py”, line 539, in run_forever self._run_once() File “c:\anaconda3\lib\asyncio\base_events.py”, line 1767, in _run_once handle._run() File “c:\anaconda3\lib\asyncio\events.py”, line 88, in _run self._context.run(self._callback, *self._args) File “c:\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 387, in on_message_wrapper await on_new_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 65, in handler await app.agent.handle_message(*args, **kwargs) File “c:\anaconda3\lib\site-packages\rasa\core\agent.py”, line 478, in handle_message return await processor.handle_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 80, in handle_message tracker = await self.log_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 128, in log_message await self._handle_message_with_tracker(message, tracker) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 313, in _handle_message_with_tracker self._log_slots(tracker) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 265, in log_slots logger.debug(“Current slot values: \n{}”.format(slot_values)) Message: ‘Current slot values: \n\tdestination_address: None\n\tfrom_address: None\n\tlocal_address: hà nội\n\torder_code: None\n\trequested_slot: None\n\tweight: None’ Arguments: () 2019-07-27 09:15:23 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 3 events 2019-07-27 09:15:23 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2019-07-27 09:15:23 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {‘intent_buu_cuc_gan_nhat’: 1.0, ‘prev_action_listen’: 1.0, ‘entity_local_address’: 1.0}] 2019-07-27 09:15:23 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘13’ 2019-07-27 09:15:24 DEBUG rasa.core.policies.form_policy - There is no active form 2019-07-27 09:15:24 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy 2019-07-27 09:15:24 DEBUG rasa.core.processor - Predicted next action ‘utter_buu_cuc_gan_nhat’ with confidence 1.00. 2019-07-27 09:15:24 DEBUG rasa.core.processor - Action ‘utter_buu_cuc_gan_nhat’ ended with events ‘[‘BotUttered(text: GHTK đang hoàn thiện chức năng tìm bưu cục tại địa điểm hà nội. Bạn thông cảm!, data: {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, metadata: {})’]’ — Logging error — Traceback (most recent call last): File "c:\anaconda3\lib\logging_init.py", line 1037, in emit stream.write(msg + self.terminator) File “c:\anaconda3\lib\encodings\cp1252.py”, line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u0111’ in position 108: character maps to Call stack: File “c:\anaconda3\lib\runpy.py”, line 193, in run_module_as_main “main”, mod_spec) File “c:\anaconda3\lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "C:\Anaconda3\Scripts\rasa.exe_main.py", line 9, in sys.exit(main()) File "c:\anaconda3\lib\site-packages\rasa_main.py", line 76, in main cmdline_arguments.func(cmdline_arguments) File “c:\anaconda3\lib\site-packages\rasa\cli\shell.py”, line 102, in shell rasa.cli.run.run(args) File “c:\anaconda3\lib\site-packages\rasa\cli\run.py”, line 119, in run rasa.run(**vars(args)) File “c:\anaconda3\lib\site-packages\rasa\run.py”, line 54, in run **kwargs File “c:\anaconda3\lib\site-packages\rasa\core\run.py”, line 179, in serve_application app.run(host=“0.0.0.0”, port=port) File “c:\anaconda3\lib\site-packages\sanic\app.py”, line 1096, in run serve(**server_settings) File “c:\anaconda3\lib\site-packages\sanic\server.py”, line 770, in serve loop.run_forever() File “c:\anaconda3\lib\asyncio\base_events.py”, line 539, in run_forever self._run_once() File “c:\anaconda3\lib\asyncio\base_events.py”, line 1767, in _run_once handle._run() File “c:\anaconda3\lib\asyncio\events.py”, line 88, in _run self._context.run(self._callback, *self._args) File “c:\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 387, in on_message_wrapper await on_new_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\channels\channel.py”, line 65, in handler await app.agent.handle_message(*args, **kwargs) File “c:\anaconda3\lib\site-packages\rasa\core\agent.py”, line 478, in handle_message return await processor.handle_message(message) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 84, in handle_message await self._predict_and_execute_next_action(message, tracker) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 350, in _predict_and_execute_next_action action, tracker, message.output_channel, self.nlg, policy, confidence File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 454, in _run_action self._log_action_on_tracker(tracker, action.name(), events, policy, confidence) File “c:\anaconda3\lib\site-packages\rasa\core\processor.py”, line 503, in _log_action_on_tracker action_name, [“{}”.format(e) for e in events] Message: ‘Action 'utter_buu_cuc_gan_nhat' ended with events '['BotUttered(text: GHTK đang hoàn thiện chức năng tìm bưu cục tại địa điểm hà nội. Bạn thông cảm!, data: {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, metadata: {})']'’ Arguments: () 2019-07-27 09:15:24 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3). 2019-07-27 09:15:24 DEBUG rasa.core.policies.memoization - Current tracker state [None, {}, {‘intent_buu_cuc_gan_nhat’: 1.0, ‘prev_action_listen’: 1.0, ‘entity_local_address’: 1.0}, {‘intent_buu_cuc_gan_nhat’: 1.0, ‘prev_utter_buu_cuc_gan_nhat’: 1.0, ‘entity_local_address’: 1.0}] 2019-07-27 09:15:24 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘0’ 2019-07-27 09:15:24 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘buu_cuc_gan_nhat’. 2019-07-27 09:15:24 DEBUG rasa.core.policies.form_policy - There is no active form 2019-07-27 09:15:24 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_MemoizationPolicy 2019-07-27 09:15:24 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00. 2019-07-27 09:15:24 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘’ 2019-07-27 09:15:24 DEBUG rasa.core.agent - Deleted lock for conversation ‘default’ (unused) GHTK đang hoàn thiện chức năng tìm bưu cục tại địa điểm hà nội. Bạn thông cảm! Your input →

My files are bellow

stories.md (895 Bytes) domain.yml (3.3 KB) endpoints.yml (1.6 KB) actions.py (1.6 KB) config.yml (545 Bytes) clean_text.py (1.7 KB)

Hey @TQuy. It’s because you are running Rasa in a debug mode which then prints all info for all precesses so that you can spot potential errors and stuff. If your don’t want to see those messages simply run rasa shell

But it destroyes the interactive learning

use --skip-visualization as suggested