-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typing_extensions package isn't installed with apache-airflow-providers-amazon causing an issue for SqlToS3Operator #21566
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! |
It looks like as of Python 3.8 this functionality can be achieved by changing the import to
instead of
but utilizing Line 140 in 0a6ea57
|
Also looks like the SQS Sensor suffers from a similar issue https://github.com/apache/airflow/blob/main/airflow/providers/amazon/aws/sensors/sqs.py#L24 |
FYI - There is typing_compat that could be used for the |
Might be worth putting in some sort of CI check for these compat-related imports too. @potiuk WDYT? |
Ah yeah. Absolutely :) |
Apache Airflow Provider(s)
amazon
Versions of Apache Airflow Providers
3.0.0rc2
Apache Airflow version
2.2.3 (latest released)
Python version
Python 3.9.7 (default, Oct 12 2021, 02:43:43)
Operating System
Debian GNU/Linux 11 (bullseye)
Deployment
Docker-Compose
Deployment details
No response
What happened
I was working on adding this operator to a DAG and it failed to import due to a lack of a required file
What you expected to happen
No response
How to reproduce
Add
to a dag
Anything else
This can be resolved by adding
typing-extensions==4.1.1
torequirements.txt
when building the project (locally)Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: