rylativity commented on issue #38037:
URL: https://github.com/apache/airflow/issues/38037#issuecomment-2041209079

   I am running into an issue with the openlineage plugin too, however it is 
occuring when I try to install the Datahub plugin 
(`acryl-datahub-airflow-plugin[plugin-v2]`) to extract lineage as described 
here.
   
   I am using Airflow 2.8.4 directly from the quickstart docker-compose.yml 
file. Didn't have this issue in Airflow 2.5.x-2.7.x.
   
   ```
   WARN[0000] The "AIRFLOW_UID" variable is not set. Defaulting to a blank 
string. 
   WARN[0000] The "AIRFLOW_UID" variable is not set. Defaulting to a blank 
string. 
   airflow-scheduler-1  | 
   airflow-scheduler-1  | BACKEND=redis
   airflow-scheduler-1  | DB_HOST=redis
   airflow-scheduler-1  | DB_PORT=6379
   airflow-scheduler-1  | 
   airflow-scheduler-1  |   ____________       _____________
   airflow-scheduler-1  |  ____    |__( )_________  __/__  /________      __
   airflow-scheduler-1  | ____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
   airflow-scheduler-1  | ___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
   airflow-scheduler-1  |  _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
   airflow-scheduler-1  | [2024-04-06T21:15:29.903+0000] 
{plugins_manager.py:247} ERROR - Failed to import plugin openlineage
   airflow-scheduler-1  | Traceback (most recent call last):
   airflow-scheduler-1  |   File 
"/home/airflow/.local/lib/python3.10/site-packages/airflow/plugins_manager.py", 
line 239, in load_entrypoint_plugins
   airflow-scheduler-1  |     plugin_class = entry_point.load()
   airflow-scheduler-1  |   File 
"/home/airflow/.local/lib/python3.10/site-packages/importlib_metadata/__init__.py",
 line 211, in load
   airflow-scheduler-1  |     module = import_module(match.group('module'))
   airflow-scheduler-1  |   File 
"/usr/local/lib/python3.10/importlib/__init__.py", line 126, in import_module
   airflow-scheduler-1  |     return _bootstrap._gcd_import(name[level:], 
package, level)
   airflow-scheduler-1  |   File "<frozen importlib._bootstrap>", line 1050, in 
_gcd_import
   airflow-scheduler-1  |   File "<frozen importlib._bootstrap>", line 1027, in 
_find_and_load
   airflow-scheduler-1  |   File "<frozen importlib._bootstrap>", line 1006, in 
_find_and_load_unlocked
   airflow-scheduler-1  |   File "<frozen importlib._bootstrap>", line 688, in 
_load_unlocked
   airflow-scheduler-1  |   File "<frozen importlib._bootstrap_external>", line 
883, in exec_module
   airflow-scheduler-1  |   File "<frozen importlib._bootstrap>", line 241, in 
_call_with_frames_removed
   airflow-scheduler-1  |   File 
"/home/airflow/.local/lib/python3.10/site-packages/airflow/providers/openlineage/plugins/openlineage.py",
 line 23, in <module>
   airflow-scheduler-1  |     from 
airflow.providers.openlineage.plugins.listener import get_openlineage_listener
   airflow-scheduler-1  |   File 
"/home/airflow/.local/lib/python3.10/site-packages/airflow/providers/openlineage/plugins/listener.py",
 line 28, in <module>
   airflow-scheduler-1  |     from 
airflow.providers.openlineage.plugins.adapter import OpenLineageAdapter, 
RunState
   airflow-scheduler-1  |   File 
"/home/airflow/.local/lib/python3.10/site-packages/airflow/providers/openlineage/plugins/adapter.py",
 line 26, in <module>
   airflow-scheduler-1  |     from openlineage.client.facet import (
   airflow-scheduler-1  | ImportError: cannot import name 'JobTypeJobFacet' 
from 'openlineage.client.facet' 
(/home/airflow/.local/lib/python3.10/site-packages/openlineage/client/facet.py)
   ```


-- 
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]

Reply via email to