GitHub user iscipar added a comment to the discussion: TypeError when importing
operators from airflow.providers.google.cloud.operators.dataproc
Hi,
I have installed the apache-airflow-providers-openlineage package and added the
section with the openlineage in lowercase.
After doing this, the error is still produced in the DAGs that import the
BigQueryInsertJobOperator but now the exception is the following different one
related to not finding the name _BigQueryOpenLineageMixin.
I think the best thing to do is perhaps to wait for the next versions of the
apache-airflow packages to be released with all the fixes you have added.
Any approximate date for this?
[2025-02-11T00:00:18.542+0100] {logging_mixin.py:190} INFO -
[2025-02-11T00:00:18.539+0100] {dagbag.py:387} ERROR - Failed to import:
/home/iscipar/Projects/airflow-tutorial/dags/2_simple_storage_bigquery.py
Traceback (most recent call last):
File
"/home/iscipar/Proyectos/airflow-tutorial/airflow_env/lib/python3.12/site-packages/airflow/models/dagbag.py",
line 383, in parse
loader.exec_module(new_module)
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File
"/home/iscipar/Proyectos/airflow-tutorial/dags/2_simple_storage_bigquery.py",
line 2, in <module>
from airflow.providers.google.cloud.operators.bigquery import
BigQueryInsertJobOperator
File
"/home/iscipar/Proyectos/airflow-tutorial/airflow_env/lib/python3.12/site-packages/airflow/providers/google/cloud/operators/bigquery.py",
line 47, in <module>
from airflow.providers.google.cloud.openlineage.mixins import
_BigQueryOpenLineageMixin
ImportError: cannot import name '_BigQueryOpenLineageMixin' from
'airflow.providers.google.cloud.openlineage.mixins'
(/home/iscipar/Proyectos/airflow-tutorial/airflow_env/lib/python3.12/site-packages/airflow/providers/google/cloud/openlineage/mixins.py)
GitHub link:
https://github.com/apache/airflow/discussions/46478#discussioncomment-12130465
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]