Page 1 of 1

Deluge not starting after update

Posted: Wed Mar 12, 2025 9:42 pm
by TWolf
I ran an update earlier today, I'm using OpenSuse Tumbleweed. . .Deluge was updated (2.1.1-4.5) amongst a multitude of others.

Now Deluge doesn't start and give this error when running from the command line:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/deluge", line 33, in <module>
    sys.exit(load_entry_point('deluge==2.1.1', 'gui_scripts', 'deluge')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/deluge/ui/ui_entry.py", line 140, in start_ui
    ui.start()
    ~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/deluge/ui/gtk3/__init__.py", line 45, in start
    from .gtkui import GtkUI
  File "/usr/lib/python3.13/site-packages/deluge/ui/gtk3/gtkui.py", line 50, in <module>
    from deluge.ui.tracker_icons import TrackerIcons
  File "/usr/lib/python3.13/site-packages/deluge/ui/tracker_icons.py", line 22, in <module>
    from deluge.httpdownloader import download_file
  File "/usr/lib/python3.13/site-packages/deluge/httpdownloader.py", line 9, in <module>
    import cgi
ModuleNotFoundError: No module named 'cgi'
Can someone help please?

Re: Deluge not starting after update

Posted: Thu Mar 13, 2025 1:53 am
by ambipro
it appears you are missing a module, which would lead me to believe that the installation is broken somehow. You should try uninstalling and reinstalling via pip, perhaps using the [all]

pip install deluge[all]

However I'm not sure what method you used to install, but I always recommend using pip to install if you're trying to get the latest, as PPA tends to be complicated for many and pip much simpler.

Re: Deluge not starting after update

Posted: Thu Mar 13, 2025 8:38 am
by mhertz
As the good ambipro states, indeed missing a module. Been thinking about making a PR about including legacy-cgi package which needed with python 3.13, as cgi gone from deprecated to fully removed, but anyway, there probably is a tumbleweed package of it, just Google e.g 'tumbleweed legacy-cgi python 3.13' etc - not in-the-know about tumbleweed sorry - or just' pip install legacy-cgi' though pep 668 probably enabled on your distro, is on most newer ones, meaning need do it in venv and run, or break the pep 668 security with extra unrecommended flag to pip command etc.

Hope helps.

Re: Deluge not starting after update

Posted: Thu Mar 13, 2025 9:24 am
by TWolf
Thanks both. . .appreciate your help & suggestions.

I just use the package manager that comes with Tumbleweed to install software.
Did a search for 'legacy-cgi' and installed 'python313-legacy-cgi'.

Deluge is working again! Many Thanks.