Xiroo opened a new issue, #32686: URL: https://github.com/apache/airflow/issues/32686
### Apache Airflow version Other Airflow 2 version (please specify below) ### What happened In airflow version 2.6.2 and 2.6.3, there's a constrain like following. In 2.6.2 protobuf==4.23.2 In 2.6.3 protobuf==4.23.4 But protobuf with version above 3.20.x, it return failure log like following. I think it is known issue also in the [protobuf project](https://github.com/protocolbuffers/protobuf/issues/10051) ```Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/site-packages/google/cloud/logging/__init__.py", line 18, in <module> from google.cloud.logging_v2 import __version__ File "/usr/local/lib/python3.10/site-packages/google/cloud/logging_v2/__init__.py", line 25, in <module> from google.cloud.logging_v2.client import Client File "/usr/local/lib/python3.10/site-packages/google/cloud/logging_v2/client.py", line 25, in <module> from google.cloud.logging_v2._helpers import _add_defaults_to_filter File "/usr/local/lib/python3.10/site-packages/google/cloud/logging_v2/_helpers.py", line 25, in <module> from google.cloud.logging_v2.entries import LogEntry File "/usr/local/lib/python3.10/site-packages/google/cloud/logging_v2/entries.py", line 31, in <module> import google.cloud.audit.audit_log_pb2 # noqa: F401 File "/usr/local/lib/python3.10/site-packages/google/cloud/audit/audit_log_pb2.py", line 62, in <module> _descriptor.FieldDescriptor( File "/usr/local/lib/python3.10/site-packages/google/protobuf/descriptor.py", line 560, in __new__ _message.Message._CheckCalledFromGeneratedFile() TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0. If you cannot immediately regenerate your protos, some other possible workarounds are: 1. Downgrade the protobuf package to 3.20.x or lower. 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower). More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates``` ### What you think should happen instead _No response_ ### How to reproduce using 'from airflow.providers.google.common.hooks.base_google import GoogleBaseHook' with protobuf above 3.20.x ### Operating System macOS 13.0 ### Versions of Apache Airflow Providers apache-airflow-providers-google==10.2.0 ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
