Skip to content

Comments

[Core] Replace deprecated pkg_resources with importlib.metadata#498

Draft
ademuri wants to merge 1 commit intodeluge-torrent:developfrom
ademuri:pkg-resources
Draft

[Core] Replace deprecated pkg_resources with importlib.metadata#498
ademuri wants to merge 1 commit intodeluge-torrent:developfrom
ademuri:pkg-resources

Conversation

@ademuri
Copy link

@ademuri ademuri commented Feb 21, 2026

This fixes the ModuleNotFoundError: No module named 'pkg_resources' errors encountered in Python 3.13 environments, as setuptools has removed this module.

  • Refactored plugin discovery in pluginmanagerbase.py
  • Updated UI entry point loading in ui_entry.py
  • Modernized resource handling in common.py and plugins
  • Maintained compatibility with Python 3.9

This fixes the ModuleNotFoundError: No module named 'pkg_resources'
errors encountered in Python 3.13 environments, as setuptools has
removed this module.

- Refactored plugin discovery in pluginmanagerbase.py
- Updated UI entry point loading in ui_entry.py
- Modernized resource handling in common.py and plugins
- Maintained compatibility with Python 3.9
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.

1 participant