XENONnT / straxen

Streaming analysis for XENON
BSD 3-Clause "New" or "Revised" License
21 stars 32 forks source link

find_validators is not supported in pydantic>=2.0.0 #1348

Closed yuema137 closed 4 months ago

yuema137 commented 5 months ago

There are some modules using find_validators() function from pydantic, but it's removed since pydantic 2.0.0 https://github.com/XENONnT/straxen/blob/fb1ae7681eb743854adfcb252094a86d4ef973f0/straxen/url_config.py#L27

There is a big change from v1 to v2 in pydantic, so I think it's better to use the later version to keep consistency with other xenon packages like rframe. Also the requirements.txt should be updated to include pydantic.

yuema137 commented 4 months ago

The solution is that we stick to v1.10 for all of the xenon packages.