stealthBanana opened a new issue, #34203:
URL: https://github.com/apache/airflow/issues/34203

   ### Apache Airflow version
   
   2.7.1
   
   ### What happened
   
   Hi, 
   this morning while rebuilding an image based on the 
apache/airflow:latest-python3.8 I failed to import a dag and was presented with 
the following error:
   `Broken DAG: [/opt/airflow/dags/quality_prediction_ct.py] Traceback (most 
recent call last):
     File 
"/home/airflow/.local/lib/python3.8/site-packages/mlflow/gateway/config.py", 
line 79, in OpenAIConfig
       @root_validator(pre=False)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/pydantic/deprecated/class_validators.py",
 line 228, in root_validator
       raise PydanticUserError(
   pydantic.errors.PydanticUserError: If you use `@root_validator` with 
pre=False (the default) you MUST specify `skip_on_failure=True`. Note that 
`@root_validator` is deprecated and should be replaced with `@model_validator`.
   
   For further information visit 
https://errors.pydantic.dev/2.3/u/root-validator-pre-skip
   `
   
   Yesterday it worked just fine and no modification were done to the code. I 
then tried to downgrade the version to 2.7.1rc2 and got the same error, I then 
downgraded it to version 2.7.0 and it worked again.
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   I really don't know, I'm just running a dag in python using the task flow 
api.
   
   ### Operating System
   
   Manjaro Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Dockerfile:
   ```
   FROM apache/airflow:latest-python3.8
   
   RUN pip install pip --upgrade
   RUN pip install mlflow xgboost scikit-learn matplotlib bentoml 
influxdb-client aiohttp
   
   EXPOSE 8080
   ```
   
   Docker compose:
   ```
   services:
     airlow_server:
       container_name: airflow_server
       build:
         context: .
         dockerfile: dockerfile_airflow
       hostname: "airflow_server"
       network_mode: "host"
       volumes:
         - ./dags:/opt/airflow/dags
       command: airflow standalone
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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