Bug 2246053

Summary: python-curio fails to build with Python 3.13: ModuleNotFoundError: No module named 'telnetlib'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-curioAssignee: Carl George 🎩 <carl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl, ksurma, mhroncok, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-curio-1.6^1.1484546-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-05 16:17:22 UTC Type: Bug
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 Karolina Surma 2023-10-25 07:50:31 UTC
python-curio fails to build with Python 3.13.0a1.

+ /usr/bin/pytest --verbose -m 'not internet'
ImportError while loading conftest '/builddir/build/BUILD/curio-1.6/tests/conftest.py'.
tests/conftest.py:5: in <module>
    from curio.monitor import Monitor
../../BUILDROOT/python-curio-1.6-5.fc40.x86_64/usr/lib/python3.13/site-packages/curio/monitor.py:58: in <module>
    import telnetlib
E   ModuleNotFoundError: No module named 'telnetlib'

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.)


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

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

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:01:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 2 Fedora Update System 2024-06-05 16:12:27 UTC
FEDORA-2024-a23f6d8768 (python-curio-1.6^1.1484546-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-a23f6d8768

Comment 3 Fedora Update System 2024-06-05 16:17:22 UTC
FEDORA-2024-a23f6d8768 (python-curio-1.6^1.1484546-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.