Skip to content

Migrate to importlib resources#52

Closed
hendriks73 wants to merge 2 commits into
faroit:masterfrom
hendriks73:fix_deprecated_pkg_resources
Closed

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

Conversation

@hendriks73
Copy link
Copy Markdown

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

Comment thread stempeg/__init__.py Outdated
@hendriks73
Copy link
Copy Markdown
Author

Knock knock!

@faroit
Copy link
Copy Markdown
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
Copy Markdown
Author

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

@faroit
Copy link
Copy Markdown
Owner

faroit commented May 7, 2026

@hendriks73 i checked: when 0.2.6 i used, the warning is not there anymore, so this is was fixed already. musdb requires >=0.2.4 so it might be just your local lock file that prevented the upgrade. Feel free to reopen if this still occurs

@faroit faroit closed this May 7, 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.

2 participants