You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running gradio file.py, the code compiles. When opening the provided link for the gradio interface, the code crashes, giving the following error:
File "C:\Users\User\AppData\Local\Programs\Python\Python38\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 0x8f in position 309911: character maps to <undefine>
After hours of trial and error, switching Python versions, using a new virtual environment, changing gradio version and more, I found a temporary solution: comment the code of file: cp1252.
This solves the issue for now.
Regarding the error I found that "0x8f" is part of the charmap of Python, but it's an undefined character, I cannot find more information on what is triggering this error.
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
I cannot share the code as it is under NDA unfortunately, I know you will hate me, but I'm just showing an issue.
Screenshot
No response
Logs
No response
System Info
Gradio 4.31.3
Python 3.8 or 3.11 gave the same error.
Severity
I can work around it
The text was updated successfully, but these errors were encountered:
Hi @MichelangeloAmorusoManzari you don't need to share proprietary code but we'll need some sort of minimal example that produces this error, otherwise we are not sure if it's a gradio issue or something else in your code. I'll close this for now, until we have a suitable repro.
Describe the bug
When running gradio file.py, the code compiles. When opening the provided link for the gradio interface, the code crashes, giving the following error:
After hours of trial and error, switching Python versions, using a new virtual environment, changing gradio version and more, I found a temporary solution: comment the code of file: cp1252.
This solves the issue for now.
Regarding the error I found that "0x8f" is part of the charmap of Python, but it's an undefined character, I cannot find more information on what is triggering this error.
Have you searched existing issues? 🔎
Reproduction
I cannot share the code as it is under NDA unfortunately, I know you will hate me, but I'm just showing an issue.
Screenshot
No response
Logs
No response
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: