openinterpreter icon indicating copy to clipboard operation
openinterpreter copied to clipboard

UnicodeEncodeError

Open lez-doit opened this issue 3 years ago • 3 comments

Describe the bug

Traceback (most recent call last): File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code exec(code, run_globals) File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\Scripts\interpreter.exe_main.py", line 7, in File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\interpreter\interpreter.py", line 131, in cli cli(self) File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\interpreter\cli.py", line 207, in cli interpreter.chat() File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\interpreter\interpreter.py", line 313, in chat self.verify_api_key() File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\interpreter\interpreter.py", line 507, in verify_api_key self._print_welcome_message() File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\interpreter\interpreter.py", line 953, in print_welcome_message print("", Markdown("\u25cf"), "", Markdown(f"\nWelcome to Open Interpreter.\n"), "") File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich_init.py", line 74, in print return write_console.print(*objects, sep=sep, end=end) File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich\console.py", line 1673, in print with self: File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich\console.py", line 865, in exit self._exit_buffer() File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich\console.py", line 823, in _exit_buffer self._check_buffer() File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich\console.py", line 2027, in _check_buffer legacy_windows_render(buffer, LegacyWindowsTerm(self.file)) File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich_windows_renderer.py", line 19, in legacy_windows_render term.write_text(text) File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\site-packages\rich_win32_console.py", line 403, in write_text self.write(text) File "C:\Users\Artem\AppData\Local\Programs\Python\Python310\lib\encodings\cp1251.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u25cf' in position 0: character maps to

Reproduce

  1. $ pip install open-interpreter
  2. $ interpreter

Expected behavior

I expected to start open interpreter

Screenshots

No response

Open Interpreter version

0.1.4

Python version

3.10.4

Operating System name and version

Windows 10

Additional context

No response

lez-doit avatar Sep 19 '23 10:09 lez-doit

Getting the same error.

Maximophone avatar Oct 03 '23 09:10 Maximophone

same issue

xinranli0809 avatar Oct 11 '23 20:10 xinranli0809

Hey there, folks!

Going to try to consolidate the conversation around UnicodeDecodeError and UnicodeEncodeError into #93

Please feel encouraged to continue the discussion in that thread so we’ve got everything in one spot.

ericrallen avatar Oct 28 '23 21:10 ericrallen