Skip to content

Fix importlib import in shared plugins manager#60358

Closed
jedcunningham wants to merge 1 commit into
apache:mainfrom
astronomer:fix_plugins_manager_import
Closed

Fix importlib import in shared plugins manager#60358
jedcunningham wants to merge 1 commit into
apache:mainfrom
astronomer:fix_plugins_manager_import

Conversation

@jedcunningham
Copy link
Copy Markdown
Member

This was only being imported if load_examples was on.

Before:

Traceback (most recent call last):
  File "/Users/jedc/github/airflow/airflow-core/src/airflow/_shared/plugins_manager/plugins_manager.py", line 234, in _load_plugins_from_plugin_directory
    loader = importlib.machinery.SourceFileLoader(mod_name, file_path)
             ^^^^^^^^^
UnboundLocalError: cannot access local variable 'importlib' where it is not associated with a value

This was only being imported if load_examples was on.
@jedcunningham
Copy link
Copy Markdown
Member Author

Duplicate of #60373

@jedcunningham jedcunningham marked this as a duplicate of #60373 Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants