You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/11 15:19:30 UTC

[GitHub] [airflow] Alien2150 opened a new issue #13019: Plugins broken with 1.10.14

Alien2150 opened a new issue #13019:
URL: https://github.com/apache/airflow/issues/13019


   **Apache Airflow version**: 1.14
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): 1.17
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: Kubernetes 
   - **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**:
   Already figured out a workaround solution: https://twitter.com/ApacheAirflow/status/1337415983447814144
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #13019: Plugins broken with 1.10.14 & Python 3.8

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #13019:
URL: https://github.com/apache/airflow/issues/13019#issuecomment-743301113


   The commit for this has been merged to v1-10-test and if we create 1.10.15, this fix would be a part of it. If not, Airflow 2.0 will anyway contain the fix.
   
   Commit: https://github.com/apache/airflow/commit/e75deee11ab8ed626979f1fe3927049a200ab676


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil closed issue #13019: Plugins broken with 1.10.14 & Python 3.8

Posted by GitBox <gi...@apache.org>.
kaxil closed issue #13019:
URL: https://github.com/apache/airflow/issues/13019


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil commented on issue #13019: Plugins broken with 1.10.14

Posted by GitBox <gi...@apache.org>.
kaxil commented on issue #13019:
URL: https://github.com/apache/airflow/issues/13019#issuecomment-743255624


   Just posting the solution here too, install `importlib-metadata` and it should work fine:
   
   
   ```
   pip install importlib-metadata~=2.0
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] kaxil edited a comment on issue #13019: Plugins broken with 1.10.14 & Python 3.8

Posted by GitBox <gi...@apache.org>.
kaxil edited a comment on issue #13019:
URL: https://github.com/apache/airflow/issues/13019#issuecomment-743255624


   Just posting the solution here too, install `importlib-metadata` and it should work fine:
   
   
   ```
   pip install importlib-metadata~=2.0
   ```
   
   This issue only affects Python 3.8 users.
   
   Thanks for reporting @Alien2150 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org