Deluge not starting after update

General support for problems installing or using Deluge
Post Reply
TWolf
New User
New User
Posts: 2
Joined: Wed Mar 12, 2025 9:28 pm

Deluge not starting after update

Post 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?
User avatar
ambipro
Moderator
Moderator
Posts: 654
Joined: Thu May 19, 2022 3:33 am
Contact:

Re: Deluge not starting after update

Post 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.
mhertz
Moderator
Moderator
Posts: 2321
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: Deluge not starting after update

Post 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.
TWolf
New User
New User
Posts: 2
Joined: Wed Mar 12, 2025 9:28 pm

Re: Deluge not starting after update

Post 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.
Post Reply