I am running the Python Pro Swith Demo using Thonny Python IDE on a Raspberry Pi 3 A+. The program runs ok, but when it starts I get a pop up labeled "Problem when handling 'ProgramOutput'" that contains the following message:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/thonny/workbench.py", line 1598, in event_generate
handler(event)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 393, in _handle_program_output
self._update_visible_io(None)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 501, in _update_visible_io
self._apply_io_event(data, stream_name)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 600, in _apply_io_event
self._insert_text_directly(data, tuple(tags))
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 983, in _insert_text_directly
_insert_and_highlight_urls(line, tags)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 945, in _insert_and_highlight_urls
_insert(part, tags)
File "/usr/lib/python3/dist-packages/thonny/shell.py", line 939, in _insert
self.direct_insert("output_insert", txt, tags)
File "/usr/lib/python3/dist-packages/thonny/ui_utils.py", line 750, in direct_insert
return tktextext.EnhancedText.direct_insert(self, index, chars, tags=tags, kw)
File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 719, in direct_insert
super().direct_insert(index, chars, tags, kw)
File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 155, in direct_insert
self._original_insert(index, chars, tags, **kw)
File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 37, in original_function
self.tk.call((self._original_widget_name, operation) + args)
_tkinter.TclError: character U+1f609 is above the range (U+0000-U+FFFF) allowed by Tcl
I am running the Python Pro Swith Demo using Thonny Python IDE on a Raspberry Pi 3 A+. The program runs ok, but when it starts I get a pop up labeled "Problem when handling 'ProgramOutput'" that contains the following message:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/thonny/workbench.py", line 1598, in event_generate handler(event) File "/usr/lib/python3/dist-packages/thonny/shell.py", line 393, in _handle_program_output self._update_visible_io(None) File "/usr/lib/python3/dist-packages/thonny/shell.py", line 501, in _update_visible_io self._apply_io_event(data, stream_name) File "/usr/lib/python3/dist-packages/thonny/shell.py", line 600, in _apply_io_event self._insert_text_directly(data, tuple(tags)) File "/usr/lib/python3/dist-packages/thonny/shell.py", line 983, in _insert_text_directly _insert_and_highlight_urls(line, tags) File "/usr/lib/python3/dist-packages/thonny/shell.py", line 945, in _insert_and_highlight_urls _insert(part, tags) File "/usr/lib/python3/dist-packages/thonny/shell.py", line 939, in _insert self.direct_insert("output_insert", txt, tags) File "/usr/lib/python3/dist-packages/thonny/ui_utils.py", line 750, in direct_insert return tktextext.EnhancedText.direct_insert(self, index, chars, tags=tags, kw) File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 719, in direct_insert super().direct_insert(index, chars, tags, kw) File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 155, in direct_insert self._original_insert(index, chars, tags, **kw) File "/usr/lib/python3/dist-packages/thonny/tktextext.py", line 37, in original_function self.tk.call((self._original_widget_name, operation) + args) _tkinter.TclError: character U+1f609 is above the range (U+0000-U+FFFF) allowed by Tcl