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

Exception in ASGI application #49

Open
zeta274 opened this issue Sep 27, 2024 · 4 comments
Open

Exception in ASGI application #49

zeta274 opened this issue Sep 27, 2024 · 4 comments

Comments

@zeta274
Copy link

zeta274 commented Sep 27, 2024

Running the Gradio interface I get:

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/viktor/miniconda3/envs/resemble_enhance/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/viktor/miniconda3/envs/resemble_enhance/lib/python3.10/site-packages/pydantic/type_adapter.py", line 112, in _getattr_no_parents
raise AttributeError(attribute)
AttributeError: pydantic_core_schema

I can upload files, but when I try to process them this error just repeats over and over.
Python 3.10, running in a Conda, requirements installed without issue
RTX 4090

@hunoutl
Copy link

hunoutl commented Oct 16, 2024

Hi,
You need to force upgrade gradio.
There is an error with older gradio version using new fastapi (using new pydantic).
Check this issue : gradio-app/gradio#9278
A simple "pip install -U gradio==4.43.0" worked for me (could be newer version maybe?)

@lukeewin
Copy link

Hi, You need to force upgrade gradio. There is an error with older gradio version using new fastapi (using new pydantic). Check this issue : gradio-app/gradio#9278 A simple "pip install -U gradio==4.43.0" worked for me (could be newer version maybe?)

But tip ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
resemble-enhance 0.0.1 requires gradio==4.8.0, but you have gradio 4.43.0 which is incompatible.

@hunoutl
Copy link

hunoutl commented Oct 17, 2024

yeah,
could be a good PR to check and upgrade the app.py and requierement on gradio.

@SuperFurias
Copy link

Hi, You need to force upgrade gradio. There is an error with older gradio version using new fastapi (using new pydantic). Check this issue : gradio-app/gradio#9278 A simple "pip install -U gradio==4.43.0" worked for me (could be newer version maybe?)

thanks broski, i did "pip install gradio --upgrade" and just to be sure "python.exe -m pip install --upgrade pip" and everything works now

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