-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
Milestone
Description
Apache Airflow version: 1.14
Kubernetes version (if you are using kubernetes) (use kubectl version): 1.17
Environment:
- Cloud provider or hardware configuration: Kubernetes
- Python Version: 3.8
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a): - Install tools:
- Others:
What happened:
Plugins will be broken when importlib-metadata is not installed with python3.8 base image.
What you expected to happen:
This is the stack-trace:
[2020-12-11 14:12:29,757] {plugins_manager.py:159} ERROR - Failed to import plugin AirflowPrometheus │
│ Traceback (most recent call last): │
│ File "/home/airflow/.local/lib/python3.8/site-packages/airflow/plugins_manager.py", line 150, in load_entrypoint_plugins │
│ plugin_obj.__usable_import_name = entry_point.module │
│ AttributeError: 'EntryPoint' object has no attribute 'module'
How to reproduce it:
Put airflow-exporter==1.3.2 into requirements.txt and start the scheduler.
Anything else we need to know:
There is a workaround solution already: https://twitter.com/ApacheAirflow/status/1337415983447814144