potiuk commented on issue #34203:
URL: https://github.com/apache/airflow/issues/34203#issuecomment-1711384369

   the current image has Pydantic 2 (as opposed to previous images) - this is 
your problem (and we are not going to downgrade in the reference image). 
Pydantic released Version 2 few months ago and we are at the transition period 
where most of the libraries have already upgraded, but you might still have 
some libraries that are lagging behind.
   
   You have two options:
   
   * Airflow 2.7.1 does not limit you to Pydantic 2 - reference image has 
Pydantic 2, but you can still build your custom image and downgrade to Pydantic 
1  (see 
https://airflow.apache.org/docs/docker-stack/build.html#adding-new-pypi-packages-individually)
 on how you can downgrade/upgrade/install PyPI packages in your custom image
   
   * You can upgrade your libraries or your code to use Pydantic 2 (this is the 
best future-looking change and I'd recommend it) 
   
   Closing as invalid.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to