When importing the package, the following warning is shown:
...venv\Lib\site-packages\pydantic\_internal\_config.py:261: UserWarning: Valid config keys have changed in V2:
* 'allow_population_by_field_name' has been renamed to 'populate_by_name'
* 'allow_mutation' has been removed
warnings.warn(message, UserWarning)
The root cause is that package versions in requirements.txt are not fixed, so presumably pydantic 1.x was used initially but nowadays pydantic 2.x gets installed.
Please either:
Set pydantic<2.0 in requirements.txt to prevent pydantic 2.x being installed by default.
When importing the package, the following warning is shown:
The warnings originate from this file: https://github.com/betcode-org/betconnect/blob/master/betconnect/resources/baseresource.py.
The root cause is that package versions in
requirements.txt
are not fixed, so presumably pydantic 1.x was used initially but nowadays pydantic 2.x gets installed.Please either:
pydantic<2.0
inrequirements.txt
to prevent pydantic 2.x being installed by default.BaseResource.Config
according to https://docs.pydantic.dev/latest/migration/, then setpydantic>=2.0
inrequirements.txt
.