rgmz commented on issue #25271:
URL: https://github.com/apache/airflow/issues/25271#issuecomment-1195707123

   > The most likely cause is the plugin appears twice in `sys.path` and thus 
loaded multiple times by `importlib.metadata`.
   
   Indeed. One reason this can happen is if there are separate `lib` and 
`lib64` directories, as `pip install` seems to copy the package to both 
directories.
   
   For example:
   ```
   >>> import importlib_metadata
   >>> for dist in importlib_metadata.distributions():
   ...     for e in dist.entry_points:
   ...         if e.group != "airflow.plugins":
   ...             continue
   ...         print(dist._path)
   ...
   /opt/app-root/lib64/python3.9/site-packages/custom_plugin-1.3.16.dist-info
   /opt/app-root/lib/python3.9/site-packages/custom_plugin-1.3.16.dist-info
   ```


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