Page 1 of 1
Python 3.13 support
Posted: Tue Aug 27, 2024 8:32 pm
by mooninite
Fedora bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=2308168
Short summary: Deluge GTK UI tries to import 'cgi' and it is no longer available in Python 3.13.
https://peps.python.org/pep-0594/#cgi
There are recommendations for its replacement in the above link.
https://peps.python.org/pep-0594/#deprecated-modules
Re: Python 3.13 support
Posted: Tue Aug 27, 2024 8:57 pm
by ambipro
I don't think supporting pre-release versions of python in production software is generally something that is done.
Can you not install 3.10 or 12 and create a venv to run deluge in?
Re: Python 3.13 support
Posted: Tue Aug 27, 2024 11:09 pm
by mtasaka
Note that as
https://peps.python.org/pep-0594/#deprecated-modules says, cgi module is already marked as deprecated in python 3.11, and even with python 3.12 (on Fedora 40, python3-3.12.5-1.fc40), you can already see the warning as:
$ python --version
Python 3.12.5
$ python -Wdefault /usr/bin/deluge-gtk
....
....
/usr/lib/python3.12/site-packages/deluge/httpdownloader.py:9: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
Re: Python 3.13 support
Posted: Tue Aug 27, 2024 11:34 pm
by ambipro
We use 3.10.
Re: Python 3.13 support
Posted: Thu Aug 29, 2024 2:35 am
by mooninite
Re: Python 3.13 support
Posted: Thu Aug 29, 2024 3:11 am
by ambipro
Have you tested this to work without introducing a breaking change? I'd be very doubtful that until it 3.13 was finalized at least it would be merged, but you can (or if you can't I suppose I could on your behalf) make a PR to the
https://github.com/deluge-torrent/deluge for Cas to consider.
Once again, we are using 3.10, so your proposed change while it make it work for you, would have to keep compatibility with our 3.7 and 3.10 tests at the very least.
Re: Python 3.13 support
Posted: Fri Aug 30, 2024 2:46 am
by mooninite
Re: Python 3.13 support
Posted: Sun Sep 08, 2024 9:39 am
by ambipro
Your PR is merged.