mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
562 stars 150 forks source link

UserWarning: Field "model_filenames" has conflict with protected namespace "model_". #43

Closed qy8502 closed 10 months ago

qy8502 commented 10 months ago

Get a warning on startup

Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]
Fooocus-API version: 0.3.5
Fooocus exists and URL is correct.
Fooocus checkout finished for 01b1e98d378e7ceed08171c0397b2e5d89ea0047.
/usr/local/anaconda3/envs/fooocus-api/lib/python3.10/site-packages/pydantic/_internal/_fields.py:128: UserWarning: Field "model_filenames" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
INFO:     Started server process [59133]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8888 (Press CTRL+C to quit)
konieshadow commented 10 months ago

Just resolved this warning, but still has a stubborn warning from Pydantic.