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

UnicodeDecodeError: #5

Open
jaehyunshinML opened this issue Aug 1, 2024 · 4 comments
Open

UnicodeDecodeError: #5

jaehyunshinML opened this issue Aug 1, 2024 · 4 comments

Comments

@jaehyunshinML
Copy link

Hi
I tired to run in local with gradio_app.py.
I've got this error.

Generation took: 4.131814479827881 s
Peak Memory: 8355.408203125 MB
ERROR: Exception in ASGI application
File "/home/xxxx/miniconda3/envs/pytorch2/lib/python3.10/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1932325: ordinal not in range(128)

@vork
Copy link
Collaborator

vork commented Aug 2, 2024

Can you try running with python -X utf8?

@FishGPT
Copy link

FishGPT commented Aug 3, 2024

Hi I tired to run in local with gradio_app.py. I've got this error.

Generation took: 4.131814479827881 s Peak Memory: 8355.408203125 MB ERROR: Exception in ASGI application File "/home/xxxx/miniconda3/envs/pytorch2/lib/python3.10/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1932325: ordinal not in range(128)

I have same error, after reinstall gradio...success🤔

vork pushed a commit that referenced this issue Aug 28, 2024
* MPS backend support

* Fixes for cuda backend

* Update README.md

* Fix run.py and some other minor changes

* Fix CPU always being used in run.py
@Limbicnation
Copy link

Hi, I get the same error when running the Gradio app with:

python -X utf8 gradio_app.py

To create a public link, set `share=True` in `launch()`.
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/../anaconda3/envs/fast3d/lib/python3.10/site-packages/pydantic/type_adapter.py", line 270, in _init_core_attrs
    self._core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
  File "/home/../anaconda3/envs/fast3d/lib/python3.10/site-packages/pydantic/type_adapter.py", line 112, in _getattr_no_parents
    raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__

Ubuntu 24.04.1 LTS

@Limbicnation
Copy link

Resolved by upgrading:

pip install --upgrade pydantic
pip install --upgrade gradio

Run:

python -Xutf8 gradio_app.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants