You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Iceazy (via GitHub)" <gi...@apache.org> on 2023/07/01 12:00:55 UTC
[GitHub] [airflow] Iceazy opened a new issue, #32301: = instead of : in type hints
Iceazy opened a new issue, #32301:
URL: https://github.com/apache/airflow/issues/32301
### Apache Airflow version
2.6.2
### What happened
airflow doesn't work correct, raises
`pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `dag_id = <class 'str'>`. All model fields require a type annotation; if `dag_id` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.`
### What you think should happen instead
_No response_
### How to reproduce
just install apache-airflow and run `airflow db init`
### Operating System
Ubuntu 22.04.2 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] Iceazy commented on issue #32301: = instead of : in type hints
Posted by "Iceazy (via GitHub)" <gi...@apache.org>.
Iceazy commented on issue #32301:
URL: https://github.com/apache/airflow/issues/32301#issuecomment-1615872330
https://github.com/apache/airflow/blob/main/airflow/serialization/pydantic/dataset.py#L41
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #32301: = instead of : in type hints
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #32301:
URL: https://github.com/apache/airflow/issues/32301#issuecomment-1615872079
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #32301: = instead of : in type hints
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #32301:
URL: https://github.com/apache/airflow/issues/32301#issuecomment-1616080370
And thanks for reporting it - this is really helpful
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #32301: = instead of : in type hints
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #32301:
URL: https://github.com/apache/airflow/issues/32301#issuecomment-1616079967
good. Point - we will fix it for the 2.6.3 version.
The root cause of your problem is that you are not followiing Airlflow documentation when installing airflow. The only way to install airflow from the scratch is using the constraints: https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html and you should adatpt your scripts to do so.
The reason this installation fails for you is that you are not following the constraint routs and Pydantic 2 released yesterday caused the issue (constraints approach is exactly the way to battle this kind of problems you have and you should just follow it).
We will fix it for the new version of Pydantic for 2.6.3 (including the constraints).
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #32301: = instead of : in type hints - failing Pydantic 2
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #32301: = instead of : in type hints - failing Pydantic 2
URL: https://github.com/apache/airflow/issues/32301
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org