'BotSettings' issue
Closed this issue · 2 comments
asehmi commented
After the upgrade, I'm getting this error message:
AttributeError: 'BotSettings' object has no attribute 'model_copy'
reasonmethis commented
Interesting, I am not seeing this error. The class definition is:
class BotSettings(BaseModel):
...
and BaseModel
has the model_copy
attribute: https://docs.pydantic.dev/2.5/concepts/serialization/#model_copy
In previous versions of pydantic this function had a different name, so I am wondering: is there a chance you are using a version of pydantic earlier than the one specified in requirements.txt (2.5.3 currently)?
asehmi commented
That worked. For some reason my pydantic was at v1.something!! Many thanks indeed.