Skip to content

Migrate to importlib resources#52

Open
hendriks73 wants to merge 2 commits intofaroit:masterfrom
hendriks73:fix_deprecated_pkg_resources
Open

Migrate to importlib resources#52
hendriks73 wants to merge 2 commits intofaroit:masterfrom
hendriks73:fix_deprecated_pkg_resources

Conversation

@hendriks73
Copy link

When using the musdb package, stempeg needs to be installed, which leads this warning:

site-packages/stempeg/__init__.py:30: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.

I have migrated the code to importlib as per https://importlib-resources.readthedocs.io/en/latest/migration.html.

Please consider updating musdb as well for this PR to matter. 😉

@hendriks73
Copy link
Author

Knock knock!

@faroit
Copy link
Owner

faroit commented Feb 13, 2026

@hendriks73 oops, didn't see this one. I think I had this fixed already in a41eaab, released in v0.2.6

is yours a better fix?

@hendriks73
Copy link
Author

No idea. I just still see the warning in my logs. Perhaps musdb also needs to be updated to use your fix?

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