You are not logged in.
After last update deluge outputs:
/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py:20: 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.
import pkg_resources
Traceback (most recent call last):
File "/usr/bin/deluge", line 8, in <module>
sys.exit(start_ui())
~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py", line 40, in start_ui
ui_entrypoints[entrypoint.name] = entrypoint.load()
~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2776, in load
self.require(*args, **kwargs) # type: ignore[arg-type]
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2804, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 892, in resolve
dist = self._resolve_dist(
req, best, replace_conflicting, env, installer, required_by, to_activate
)
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 938, in _resolve_dist
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cryptography 45.0.3 (/usr/lib/python3.13/site-packages), Requirement.parse('cryptography<45,>=41.0.5'), {'pyopenssl'})
Looks like the app can't keep up with python libraries.
Offline
A temporary solution (not sure if this has any side effects):
In /usr/lib/python3.13/site-packages/pyOpenSSL-25.0.0.dist-info/METADATA, change
Requires-Dist: cryptography<45,>=41.0.5
to
Requires-Dist: cryptography>=41.0.5
Hope this helps!
Offline
That worked for me. Thank you very much!
albeit triggering some other warnings:
/usr/lib/python3.13/site-packages/deluge/pluginmanagerbase.py:16: 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.
Last edited by jgodden (2025-06-06 15:13:05)
Offline
Yes, At least it starts up. Thanks.
Offline
albeit triggering some other warnings:
/usr/lib/python3.13/site-packages/deluge/pluginmanagerbase.py:16: 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.
This warning is not caused by my suggested change, it is unrelated and due to Deluge using the `pkg_resources` package.
Offline
So now deluge is giving me a core dump.
/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py:20: 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.
import pkg_resources
Illegal instruction (core dumped)
and about the only wild guess is there were a few other python libraries (python-pytest, python-rencode, python-typeguard..) updated between it being functional (thanks to @jumbo_t !) and this state.
Last edited by jgodden (2025-06-20 15:31:07)
Offline
Hello; today I have updated my arch linux x86_64 machine and now I also cannot fire deluge and deluge-gtk
deluge
/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py:20: 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.
import pkg_resources
[1] 5028 illegal hardware instruction (core dumped) deluge
Binary Grinder
Offline
Completely different errors mean completely different issues. Don't hijack unrelated threads.
https://gitlab.archlinux.org/archlinux/ … -/issues/1
Offline
Not sure to whom you're admonishing, but this does remain an ongoing issue within the title of the ticket: "deluge error and python libraries".
That is, if deluge is failing due to various python library changes, then it's not clear that each individual error as fixing one reveals yet another should be a separate bug branch.
Having typed that, is it even possible to delete a posting here?
Offline
So now deluge is giving me a core dump.
Seems to be fixed now.
Offline
this does remain an ongoing issue within the title of the ticket
The OP was because python-cryptography had outrun pyopenssl and was fixed w/ pyopenssl 25.1 the next day.
The recent coredump happened because python-rencode was compiled march-native and O3 and your CPU isn't as fancy as the build servers' one.
These issues were > 2 weeks apart and completely unrelated and different in nature and origin.
The subject "deluge error and python libraries" is as generic as it gets and would theoretically cover deluge errors caused by your network not being up (and also deluge uses python) - it's also why https://wiki.archlinux.org/title/Genera … ow_to_post asks us to "Choose clear, informative subjects."
@johnnyq, please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
As of 2025-09-22 deluge is asserting an exception (again):
/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py:20: 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.
import pkg_resources
Traceback (most recent call last):
File "/usr/bin/deluge", line 8, in <module>
sys.exit(start_ui())
~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py", line 40, in start_ui
ui_entrypoints[entrypoint.name] = entrypoint.load()
~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2776, in load
self.require(*args, **kwargs) # type: ignore[arg-type]
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 2804, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 892, in resolve
dist = self._resolve_dist(
req, best, replace_conflicting, env, installer, required_by, to_activate
)
File "/usr/lib/python3.13/site-packages/pkg_resources/__init__.py", line 938, in _resolve_dist
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (cffi 1.17.1 (/usr/lib/python3.13/site-packages), Requirement.parse('cffi>=2.0.0; python_full_version >= "3.9" and platform_python_implementation != "PyPy"'), {'cryptography'})
this with @jumbo_t 's /usr/lib/python3.13/site-packages/pyOpenSSL-25.0.0.dist-info/METADATA fix applied. That is, deluge was functional for ~3 months after this fix and then has suffered some new library incompatibility. (recently had an update to python-pyparsing might that be it..?)
Thank you folks!
Last edited by jgodden (2025-09-22 20:03:01)
Offline
pkg_resources.ContextualVersionConflict: (cffi 1.17.1 (/usr/lib/python3.13/site-packages), Requirement.parse('cffi>=2.0.0; python_full_version >= "3.9" and platform_python_implementation != "PyPy"'), {'cryptography'})
https://archlinux.org/packages/extra/x8 … thon-cffi/ is flaged out of date, the latest version is the required https://cffi.readthedocs.io/en/stable/w … tml#v2-0-0
Offline
And what should we do while waiting for an update of python-cffi?
downgrading deluge to version "deluge-1:2.1.1-8-any.pkg.tar.zst" did not work for me.
configs files on github -- keep up the good work, arch devs
Offline
Idk what's holding up the python-cffi package but you'll likely have to downgrade the other python packages it depends on accordingly or build python-cffi for 2.0 yourself
https://wiki.archlinux.org/title/Arch_build_system
It doesn't seem anybody has reported this?
https://gitlab.archlinux.org/archlinux/ … e/-/issues
Offline