Bug 2246275 - python-pytn3270 fails to build with Python 3.13: ModuleNotFoundError: No module named 'telnetlib'
Summary: python-pytn3270 fails to build with Python 3.13: ModuleNotFoundError: No modu...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pytn3270
Version: 40
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-26 07:09 UTC by Karolina Surma
Modified: 2024-02-15 23:02 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2023-10-26 07:09:32 UTC
python-pytn3270 fails to build with Python 3.13.0a1.

____________________ ERROR collecting tests/test_telnet.py _____________________
ImportError while importing test module '/builddir/build/BUILD/pytn3270-0.15.1/tests/test_telnet.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_telnet.py:9: in <module>
    from tn3270.telnet import Telnet, TN3270EFunction, TN3270EMessageHeader, TN3270EDataType, TN3270EResponseFlag, encode_rfc1646_terminal_type, encode_rfc2355_device_type, decode_rfc2355_device_type
tn3270/__init__.py:3: in <module>
    from .telnet import (
tn3270/telnet.py:13: in <module>
    from telnetlib import IAC, WILL, WONT, DO, DONT, SB, SE, BINARY, EOR, TTYPE, TN3270E
E   ModuleNotFoundError: No module named 'telnetlib'
=========================== short test summary info ============================
ERROR tests/test_attributes.py
ERROR tests/test_datastream.py
ERROR tests/test_emulator.py
ERROR tests/test_telnet.py
!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 4 errors in 0.19s ===============================


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/06564744-python-pytn3270/

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

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


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