apache-airflow-providers-google incompatible with latest google-cloud-dataproc (2.6.0)
See original GitHub issueApache Airflow version
2.1.4 (latest released)
Operating System
MacOS
Versions of Apache Airflow Providers
apache-airflow-providers-google==5.1.0
Deployment
Other
Deployment details
No response
What happened
Installing the google provider and importing the DataprocSubmitJobOperator
fails.
I believe this is due to the removal of the Dataproc V1Beta2 Client in https://github.com/googleapis/python-dataproc/pull/253.
How to reproduce
From a fresh virtualenv:
> pip install apache-airflow-providers-google
> python
Python 3.7.3 (default, Jan 24 2020, 16:24:47)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from airflow.providers.google.cloud.operators.dataproc import DataprocSubmitJobOperator
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/samwheating/Desktop/tmpairflow/lib/python3.7/site-packages/airflow/providers/google/cloud/operators/dataproc.py", line 33, in <module>
from google.cloud.dataproc_v1beta2 import Cluster
ModuleNotFoundError: No module named 'google.cloud.dataproc_v1beta2'
Anything else
Its easy enough to pin the google-cloud-dataproc requirement to an older version, but should we also refactor the dataproc operators to stop using the deprecated client?
Either way I can help out with a PR.
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
apache-airflow-providers-google uses deprecated ... - GitHub
Apache Airflow Provider(s) google Versions of Apache Airflow Providers ... The latest version of the Google Ads API supported by this is V8 ......
Read more >apache-airflow-providers-google Documentation
All classes for this provider package are in airflow.providers.google python ... airflow 2.1+ installation via pip install apache-airflow-providers-google ...
Read more >[GitHub] [airflow] SamWheating opened a new issue #18485
... [airflow] SamWheating opened a new issue #18485: apache-airflow-providers-google incompatible with latest google-cloud-dataproc (2.6.0).
Read more >Troubleshooting PyPI package installation | Cloud Composer
In the build log, find the error message from pip . For example: ERROR: apache-airflow-backport-providers-google 2021.2.5 has ...
Read more >pzthon requirement.parse('protobuf<4.0.0dev,>=3.19.0 ...
Protocol Buffer Basics: Python | Protocol Buffers | Google Developers ... google-cloud-dataproc-metastore==1.6.3->apache-airflow-providers-google==6.8.0->-r ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Latest release has been YANKED, so it is not problem anymore.
https://pypi.org/project/google-cloud-dataproc/#history
@SamWheating @kaxil @mik-laj @uranusjr
FYI migration to v1 and upgrade to 3.0.0 already sent to review.