-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
Milestone
Description
Apache Airflow version:
1.10.14rc1
Kubernetes version (if you are using kubernetes) (use kubectl version):
nop
Environment:
- Cloud provider or hardware configuration: docker (linux)
- OS (e.g. from /etc/os-release): Debian GNU/Linux 10 (buster) (official docker image)
- Kernel (e.g.
uname -a): Linux 5.4.39 - Install tools: official docker image with docker-compose
- Others:
What happened:
Unable to import Airflow plugins.
Here is a bit more context:
[2020-12-06 15:33:25,513] {plugins_manager.py:159} ERROR - Failed to import plugin AirflowPrometheus
worker_1 | Traceback (most recent call last):
worker_1 | File "/home/airflow/.local/lib/python3.8/site-packages/airflow/plugins_manager.py", line 150, in load_entrypoint_plugins
worker_1 | plugin_obj.__usable_import_name = entry_point.module
worker_1 | AttributeError: 'EntryPoint' object has no attribute 'module'
worker_1 | Traceback (most recent call last):
worker_1 | File "/home/airflow/.local/lib/python3.8/site-packages/airflow/plugins_manager.py", line 150, in load_entrypoint_plugins
worker_1 | plugin_obj.__usable_import_name = entry_point.module
worker_1 | AttributeError: 'EntryPoint' object has no attribute 'module'
What you expected to happen:
Airflow plugins should be loaded without any problem.
How to reproduce it:
From official latest docker image:
FROM apache/airflow:1.10.13-python3.8
RUN pip install --no-cache-dir --user -U apache-airflow==1.10.14rc1 airflow-exporter==1.3.0
Anything else we need to know:
I guess it's related to recent changes in #12694. I have little knowledge on importlib, but it seems like there's no module nor module_name in importlib.metadata.EntryPoint.