Skip to content

Conversation

cavandervoort
Copy link

@cavandervoort cavandervoort commented Oct 8, 2025

Remove pkg_resources because it is deprecated and is causing issues.

I confirmed that the lines of code/functions that formerly had import pkg_resources in metaflow/metaflow_config.py and metaflow/__init__.py are being reached, and that they are no longer causing the pkg_resources warning.

See this workflow's output, which contains since-deleted print statements:

BEFORE metaflow_config.py: from importlib.metadata import version
AFTER metaflow_config.py: from importlib.metadata import version
BEFORE metaflow_config.py: from importlib.metadata import version
AFTER metaflow_config.py: from importlib.metadata import version
BEFORE __init__.py: from importlib.metadata import version
AFTER __init__.py: from importlib.metadata import version
BEFORE __init__.py: from importlib.metadata import version
AFTER __init__.py: from importlib.metadata import version

I also tested the latest version of metaflow in this commit to the synthetic tests.

@cavandervoort cavandervoort changed the title Remove pkg_resources AIP-9471 - Remove pkg_resources Oct 9, 2025
@cavandervoort cavandervoort merged commit 678422e into feature/aip Oct 9, 2025
3 of 4 checks passed
@cavandervoort cavandervoort deleted the chrisvan/AIP-9471-remove-pkg-resources branch October 9, 2025 20:20
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.

2 participants