Bug 2308168

Summary: GTK gui doesn't launch with python 3.13
Product: [Fedora] Fedora Reporter: Mamoru TASAKA <mtasaka>
Component: delugeAssignee: Michael Cronenworth <mike>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 41CC: mike
Target Milestone: ---Keywords: Desktop
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: deluge-2.1.1-10.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-13 20:55:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2244836    

Description Mamoru TASAKA 2024-08-27 14:24:17 UTC
Fedora 41 has python 3.13.0 rc1 now, and deluge GTK GUI does not launch at all like:

$ deluge-gtk
[tasaka1@localhost ~]$ deluge-gtk 

Traceback (most recent call last):
  File "/usr/bin/deluge-gtk", line 33, in <module>
    sys.exit(load_entry_point('deluge==2.1.1', 'gui_scripts', 'deluge-gtk')())
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/deluge/ui/gtk3/__init__.py", line 64, in start
    Gtk().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'


Reproducible: Always




$ rpm -q python3 deluge
python3-3.13.0~rc1-2.fc41.x86_64
deluge-2.1.1-8.fc41.noarch

Comment 1 Mamoru TASAKA 2024-08-27 14:25:52 UTC
cgi module is removed on python 3.13:

https://peps.python.org/pep-0594/#cgi

Comment 2 Michael Cronenworth 2024-08-27 20:34:12 UTC
Thanks. I have created a report upstream.

https://forum.deluge-torrent.org/viewtopic.php?t=56871

Comment 3 Mamoru TASAKA 2024-09-09 02:34:48 UTC
Now F42 deluge is fixed.

Would you rebuild fixed deluge also for F-41 and submit updates for bodhi?
(And I've noticed that the referenced bug number in %changelog was wrong...
 Sorry for that.)

Comment 4 Fedora Update System 2024-09-09 02:37:19 UTC
FEDORA-2024-988a60845f (deluge-2.1.1-10.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-988a60845f

Comment 5 Fedora Update System 2024-09-10 08:02:47 UTC
FEDORA-2024-988a60845f has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-988a60845f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-988a60845f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-09-13 20:55:27 UTC
FEDORA-2024-988a60845f (deluge-2.1.1-10.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.