Bug 2259638 - quodlibet fails to build with Python 3.13: ModuleNotFoundError: No module named 'telnetlib', 'cgi'
Summary: quodlibet fails to build with Python 3.13: ModuleNotFoundError: No module nam...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: quodlibet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: hannes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2291995 (view as bug list)
Depends On:
Blocks: F41FTBFS F41FailsToInstall PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2024-01-22 13:53 UTC by Karolina Surma
Modified: 2024-09-13 20:51 UTC (History)
4 users (show)

Fixed In Version: quodlibet-4.6.0-7.fc41
Clone Of:
Environment:
Last Closed: 2024-09-13 20:51:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kurtmckee feedparser issues 330 0 None closed cgi deprecation warning 2024-02-04 09:12:49 UTC
Github quodlibet quodlibet issues 4473 0 None open Build issues with python 3.13 of quodlibet 4.6.0 2024-02-04 09:12:49 UTC
Red Hat Bugzilla 2262610 0 unspecified CLOSED Please update python-feedparser to latest upstream version 2024-06-25 05:09:58 UTC

Description Karolina Surma 2024-01-22 13:53:33 UTC
quodlibet fails to build with Python 3.13.03.

+ /usr/bin/pytest -m 'not network'
============================= test session starts ==============================
platform linux -- Python 3.13.0a3, pytest-7.4.3, pluggy-1.3.0
rootdir: /builddir/build/BUILD/quodlibet-4.6.0
configfile: setup.cfg
collected 4561 items / 5 errors / 9 deselected / 1 skipped / 4552 selected

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_browsers_podcasts.py _______________
ImportError while importing test module '/builddir/build/BUILD/quodlibet-4.6.0/tests/test_browsers_podcasts.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_browsers_podcasts.py:9: in <module>
    from quodlibet.browsers.podcasts import Podcasts, AddFeedDialog, Feed
quodlibet/browsers/podcasts.py:17: in <module>
    import feedparser
/usr/lib/python3.13/site-packages/feedparser/__init__.py:28: in <module>
    from .api import parse
/usr/lib/python3.13/site-packages/feedparser/api.py:35: in <module>
    from .encodings import convert_to_utf8
/usr/lib/python3.13/site-packages/feedparser/encodings.py:29: in <module>
    import cgi
E   ModuleNotFoundError: No module named 'cgi'
_________________ ERROR collecting tests/test_qltk_exfalso.py __________________
ImportError while importing test module '/builddir/build/BUILD/quodlibet-4.6.0/tests/test_qltk_exfalso.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_qltk_exfalso.py:6: in <module>
    from quodlibet.qltk import exfalsowindow
quodlibet/qltk/exfalsowindow.py:41: in <module>
    from quodlibet.update import UpdateDialog
quodlibet/update.py:22: in <module>
    import feedparser
/usr/lib/python3.13/site-packages/feedparser/__init__.py:28: in <module>
    from .api import parse
/usr/lib/python3.13/site-packages/feedparser/api.py:35: in <module>
    from .encodings import convert_to_utf8
/usr/lib/python3.13/site-packages/feedparser/encodings.py:29: in <module>
    import cgi
E   ModuleNotFoundError: No module named 'cgi'
_____________ ERROR collecting tests/test_qltk_quodlibetwindow.py ______________
ImportError while importing test module '/builddir/build/BUILD/quodlibet-4.6.0/tests/test_qltk_quodlibetwindow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_qltk_quodlibetwindow.py:11: in <module>
    from quodlibet.qltk.quodlibetwindow import QuodLibetWindow, PlaybackErrorDialog
quodlibet/qltk/quodlibetwindow.py:30: in <module>
    from quodlibet.update import UpdateDialog
quodlibet/update.py:22: in <module>
    import feedparser
/usr/lib/python3.13/site-packages/feedparser/__init__.py:28: in <module>
    from .api import parse
/usr/lib/python3.13/site-packages/feedparser/api.py:35: in <module>
    from .encodings import convert_to_utf8
/usr/lib/python3.13/site-packages/feedparser/encodings.py:29: in <module>
    import cgi
E   ModuleNotFoundError: No module named 'cgi'
____________________ ERROR collecting tests/test_update.py _____________________
ImportError while importing test module '/builddir/build/BUILD/quodlibet-4.6.0/tests/test_update.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_update.py:8: in <module>
    from quodlibet.update import UpdateDialog
quodlibet/update.py:22: in <module>
    import feedparser
/usr/lib/python3.13/site-packages/feedparser/__init__.py:28: in <module>
    from .api import parse
/usr/lib/python3.13/site-packages/feedparser/api.py:35: in <module>
    from .encodings import convert_to_utf8
/usr/lib/python3.13/site-packages/feedparser/encodings.py:29: in <module>
    import cgi
E   ModuleNotFoundError: No module named 'cgi'
_________________ ERROR collecting tests/plugin/test_prefs.py __________________
ImportError while importing test module '/builddir/build/BUILD/quodlibet-4.6.0/tests/plugin/test_prefs.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/plugin/test_prefs.py:13: in <module>
    from quodlibet.ext._shared.squeezebox.server import SqueezeboxException
quodlibet/ext/_shared/squeezebox/server.py:10: in <module>
    from telnetlib import Telnet
E   ModuleNotFoundError: No module named 'telnetlib'

According to https://docs.python.org/3.13/whatsnew/3.13.html:
PEP 594: Remove the telnetlib module, deprecated in Python 3.11: use the projects telnetlib3 or Exscript instead.
(Contributed by Victor Stinner in gh-104773.)


https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06939269-quodlibet/

For all our attempts to build quodlibet with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/quodlibet/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Aoife Moloney 2024-02-15 23:11:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 hannes 2024-03-12 06:19:21 UTC
I should have been able to get it fixed. How can I easily test the builds against this? Is there a guide somewhere?

Comment 3 Miro Hrončok 2024-03-12 09:49:44 UTC
Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Comment 4 Karolina Surma 2024-06-12 15:11:17 UTC
*** Bug 2291995 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Fails To Install 2024-06-19 19:58:28 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

This package fails to install and maintainers are advised to take one of the following actions:

 - Fix this bug and close this bugzilla once the update makes it to the repository.
   (The same script that posted this comment will eventually close this bugzilla
   when the fixed package reaches the repository, so you don't have to worry about it.)

or

 - Move this bug to ASSIGNED if you plan on fixing this, but simply haven't done so yet.

or

 - Orphan the package if you no longer plan to maintain it.


If you do not take one of these actions, the process at https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs will continue.
This package may be orphaned in 7+ weeks.
This is the first reminder (step 3) from the policy.

Don't hesitate to ask for help on https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/ if you are unsure how to fix this bug.

Comment 6 hannes 2024-06-25 05:09:58 UTC
This is basically fixed, only some testing and a new upstream release is missing. I updated the dependency python-feedparser and got in touch with upstream.

Comment 7 Karolina Surma 2024-09-04 15:06:17 UTC
This package has failed to build with Python 3.13 so far. Fedora 41 is already in the Beta Freeze phase. What's your plan going forward? Will the package be fixed in time for the Final Freeze of Fedora 41 (planned on Oct 15th 2024)?
If you don't plan or can't fix the package before Fedora 41 goes into the Final Freeze phase, please retire the package. You can unretire it anytime during the Fedora 41 lifecycle - doing this now will simply ensure that we don't release Fedora with a broken package. Thank you!

Comment 8 hannes 2024-09-04 16:20:07 UTC
It will be fixed in time for the freeze. 3.13 was released 1 day ago and I am doing all that in my spare time.

Comment 9 Fedora Update System 2024-09-04 18:19:29 UTC
FEDORA-2024-4ddc2592ea (quodlibet-4.6.0-7.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-4ddc2592ea

Comment 10 Fedora Update System 2024-09-05 03:02:24 UTC
FEDORA-2024-4ddc2592ea 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-4ddc2592ea`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4ddc2592ea

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

Comment 11 Fedora Fails To Install 2024-09-08 19:03:52 UTC
Hello,

Please note that this comment was generated automatically by https://pagure.io/releng/blob/main/f/scripts/ftbfs-fti/follow-policy.py
If you feel that this output has mistakes, please open an issue at https://pagure.io/releng/

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 42.

Thanks for taking care of it!

Comment 12 Fedora Update System 2024-09-13 20:51:25 UTC
FEDORA-2024-4ddc2592ea (quodlibet-4.6.0-7.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.