Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Hosted Gorilla: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 9: invalid start byte #88

Open
giuliastro opened this issue Aug 7, 2023 · 4 comments

Comments

@giuliastro
Copy link

Hello,
I get this error when launching Gorilla on a Windows 10 PC:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 9: invalid start byte

It seems like the output works though.
Thank you.

@ShishirPatil
Copy link
Owner

Thanks for your kind words, and thanks for flagging this @giuliastro
Is this through WSL, or through a powershell, or a different modality?

@giuliastro
Copy link
Author

Thank you for the great work you are doing.
This happens when using w10 cmd shell and powershell.

Thank you in advance.

@ShishirPatil
Copy link
Owner

Ah gotcha. I think the latest PR fixes it. A reinstall from main should fix it!

rm ~/.gorilla-cli-* && pip uninstall gorilla-cli
git clone https://github.com/gorilla-llm/gorilla-cli.git
cd gorilla-cli
pip install -e .

@giuliastro
Copy link
Author

giuliastro commented Aug 8, 2023

Thank you.
I uninstalled gorilla and cleaned the packages like you suggested.
Cloned the repository as you suggested and installed with pip.
Unfortunately the error still comes out:

Traceback (most recent call last): File "C:\Users\Giulio\AppData\Local\Programs\Python\Python310\Scripts\gorilla-script.py", line 33, in <module> sys.exit(load_entry_point('gorilla-cli', 'console_scripts', 'gorilla')()) File "d:\software\gorilla-cli\go_cli.py", line 159, in main exit_condition = execute_command(selected_command) File "d:\software\gorilla-cli\go_cli.py", line 124, in execute_command error_msg = process.stderr.decode("utf-8") UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 11: invalid start byte

ShishirPatil added a commit to gorilla-llm/gorilla-cli that referenced this issue Aug 26, 2023
Reference Issue: ShishirPatil/gorilla#88

Sometimes decoding the sub-process error message seems to throw
unrezognized characters especially on windows PC. This should fix that -
we will ignore those characters that cannot be decoded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants