[Deluge] #3653: Crash with setuptools 82+

3 views
Skip to first unread message

Deluge

unread,
Feb 18, 2026, 5:13:49 PMFeb 18
to delug...@googlegroups.com
#3653: Crash with setuptools 82+
----------------------------------+-------------------
Reporter: Hugo Osvaldo Barrera | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Core
Version: 2.0.5 | Keywords:
----------------------------------+-------------------
Setuptools 82 removed the deprecated pkg_resources module.

Deluge 2.2.0 uses this module at start-up and for loading plugins, and
crashes at start-up trying to import this module which no longer exists.

For the Alpine Linux package, we're patching builds to use
importlib.metadata instead:
https://gitlab.alpinelinux.org/alpine/aports/-/blob/6da06b896ec927967e8078d221b92f4aac7ae040/community/deluge
/no-pkg_resources.patch

The main issue with this patch is that it breaks backwards compatibility
with older Pythons: importlib was introduced in Python 3.8, and Deluge
supports Python 3.6+, so it's not suitable for upstream. I asked on
#deluge on IRC for feedback but didn't receive any response.

The main focus when introducing the patch was to get Deluge back in a
state where it actually starts, and it seems to break loading plugins in
some scenarios, so needs a lot more refinement.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3653>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Mar 20, 2026, 10:02:37 PMMar 20
to delug...@googlegroups.com
#3653: Crash with setuptools 82+
-----------------------------------+----------------------------
Reporter: Hugo Osvaldo Barrera | Owner: (none)

Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Core | Version: 2.0.5
Resolution: | Keywords:
-----------------------------------+----------------------------
Comment (by DjLegolas):

well, deluge 2.2.0 dropped support for python 3.6... and works on >=3.7

and the next release will support only 3.10
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3653#comment:1>

Deluge

unread,
Mar 20, 2026, 10:03:50 PMMar 20
to delug...@googlegroups.com
#3653: Crash with setuptools 82+
-----------------------------------+----------------------------
Reporter: Hugo Osvaldo Barrera | Owner: (none)
Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Core | Version: 2.0.5
Resolution: | Keywords:
-----------------------------------+----------------------------
Comment (by DjLegolas):

well, deluge 2.2.0 dropped support for python 3.6... and works on >=3.7

and the next release will support only 3.10
--

Ticket URL: <http://dev.deluge-torrent.org/ticket/3653#comment:2>

Deluge

unread,
Mar 20, 2026, 10:20:43 PMMar 20
to delug...@googlegroups.com
#3653: Crash with setuptools 82+
-----------------------------------+----------------------------
Reporter: Hugo Osvaldo Barrera | Owner: (none)
Type: bug | Status: new
Priority: minor | Milestone: needs verified
Component: Core | Version: 2.0.5
Resolution: | Keywords:
-----------------------------------+----------------------------
Comment (by Hugo Osvaldo Barrera):

3.10+ should be a lot more manageable and using importlib directly should
work fine.

The patch I linked works for the main start-up sequence, but doesn't
properly load plugins installed as .egg files.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/3653#comment:3>

Reply all
Reply to author
Forward
0 new messages