ToTheBeginning / PuLID

[NeurIPS 2024] Official code for PuLID: Pure and Lightning ID Customization via Contrastive Alignment
Apache License 2.0
2.73k stars 190 forks source link

ERROR: Exception in ASGI application #61

Open gebaltso opened 2 months ago

gebaltso commented 2 months ago
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File ".../conda_envs/pulid/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 ".../conda_envs/pulid/lib/python3.10/site-packages/pydantic/type_adapter.py", line 112, in _getattr_no_parents
    raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__

Can anyone help with this issue?

phreaker0 commented 2 months ago

@gebaltso there is regression with some libraries. I fixed it by using older versions:

pydantic==2.8.2
pydantic-core==2.20.1
fastapi==0.112.4

pip install -r requirements.txt

gebaltso commented 2 months ago

@gebaltso there is regression with some libraries. I fixed it by using older versions:

  • add the following lines to "requirements.txt"
pydantic==2.8.2
pydantic-core==2.20.1
fastapi==0.112.4
  • run pip install again

pip install -r requirements.txt

Thanks a lot! It indeed worked.

a21211 commented 1 month ago

great! solve my problem