Bug 2359504 - python-stdlibs fails to build with Python 3.14: AssertionError: Items in the second set but not the first: '_hmac' '_ast_unparse' '_types'
Summary: python-stdlibs fails to build with Python 3.14: AssertionError: Items in the ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-stdlibs
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-04-14 13:37 UTC by Karolina Surma
Modified: 2025-04-14 13:37 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2025-04-14 13:37:38 UTC
python-stdlibs fails to build with Python 3.14.0a7.

======================================================================
FAIL: test_all_my_modules_are_there (stdlibs.tests.StdlibsTest.test_all_my_modules_are_there)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-stdlibs-2025.4.4-build/stdlibs-2025.4.4/stdlibs/tests/__init__.py", line 40, in test_all_my_modules_are_there
    self.assertIn(name, names)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^
AssertionError: '_ast_unparse' not found in frozenset({'resource', '_colorize', '__phello_alias__', 'queue', '_abc', 'textwrap', 'py_compile', 'timeit', 'optparse', '_struct', '_sysconfig', 're', '_testsinglephase', '__hello_alias__', '_codecs_hk', '_asyncio', 'tty', 'os', '_multiprocessing', 'getpass', '__phello__', 'glob', '_osx_support', 'tempfile', 'urllib', '_lsprof', 'concurrent', 'multiprocessing', 'token', 'encodings', '_testconsole', 'symtable', 'warnings', '_pyrepl', '_elementtree', 'opcode', 'pathlib', 'secrets', '__hello__', '_compression', '_testcapi', '_dbm', '_weakref', 'zipapp', '_ios_support', 'io', 'trace', '_operator', 'filecmp', '_apple_support', 'http', '_codecs_kr', 'weakref', 'zipfile', 'tokenize', '_strptime', '_sitebuiltins', '_collections', '_decimal', 'ssl', 'pydoc_data', 'modulefinder', 'tracemalloc', '_imp', 'rlcompleter', 'syslog', '_codecs', 'smtplib', '_heapq', 'pwd', 'socketserver', 'ipaddress', '_codecs_cn', 'marshal', 'mmap', '_contextvars', 'termios', 'mailbox', 'pydoc', 'unittest', 'doctest', 'site', 'genericpath', '_ctypes_test', 'bz2', '_frozen_importlib', '_symtable', '_xxtestfuzz', '_testbuffer', '__future__', 'ntpath', 'math', 'tomllib', '_curses_panel', '_aix_support', 'colorsys', 'dataclasses', '_tracemalloc', 'enum', '_py_abc', '_io', 'datetime', 'unicodedata', 'ctypes', 'select', 'graphlib', '_wmi', 'gc', 'posix', '_android_support', '_markupbase', 'readline', 'logging', 'heapq', '_testclinic', '_datetime', '_ctypes', 'html', '_sha1', 'xxsubtype', '_testcapi_datetime', 'atexit', 'cmath', 'pyexpat', 'collections', '_sqlite3', 'pty', 'typing', 'shelve', 'tarfile', 'shutil', '_multibytecodec', 'builtins', 'difflib', 'code', 'random', 'types', '_interpqueues', 'importlib', 'traceback', '_collections_abc', '_uuid', 'cProfile', 'fnmatch', 'sre_constants', 'hashlib', 'zlib', 'xxlimited_35', '_ssl', 'zipimport', 'stringprep', 'sqlite3', 'sched', 'xml', 'xx', '_sha2', 'lzma', 'sys', 'tabnanny', 'cmd', '_bz2', 'turtle', 'decimal', 'string', '_testclinic_limited', '_testimportmultiple', '_interpreters', 'email', '_overlapped', '_pyio', '_thread', 'pprint', 'uuid', 'copy', 'wave', '_warnings', 'fractions', '_testlimitedcapi', '_stat', '_tkinter', 'pkgutil', 'contextvars', '_hashlib', 'tkinter', 'xmlrpc', '_blake2', 'sysconfig', 'stat', '_posixshmem', 'nt', 'keyword', 'gettext', 'numbers', 'time', 'pickletools', '_curses', 'poplib', '_codecs_jp', '_scproxy', '_random', 'sre_compile', '_testinternalcapi', 'pyclbr', 'profile', 'compileall', 'errno', 'grp', '_csv', 'dbm', 'pstats', 'fileinput', 'imaplib', 'quopri', '_testexternalinspection', '_opcode', 'array', 'nturl2path', '_bisect', '_statistics', 'inspect', 'faulthandler', '_sha3', '_functools', '_tokenize', 'reprlib', '_codecs_iso2022', 'winsound', 'socket', '_threading_local', 'bisect', '_socket', 'argparse', 'netrc', '_queue', 'ast', 'sre_parse', '_string', 'msvcrt', 'wsgiref', 'binascii', '_gdbm', '_testmultiphase', '_lzma', 'posixpath', '_opcode_metadata', 'struct', 'subprocess', 'curses', '__hello_only__', 'csv', '_interpchannels', 'this', 'venv', 'turtledemo', '_pickle', 'winreg', 'pdb', 'gzip', 'signal', 'locale', 'plistlib', '_weakrefset', 'runpy', '_ast', 'asyncio', '_typing', 'pickle', 'calendar', '_posixsubprocess', 'codeop', 'json', '_md5', '_locale', 'hmac', 'linecache', 'ftplib', '_pylong', 'getopt', 'contextlib', '_suggestions', 'zoneinfo', 'base64', 'mimetypes', '_codecs_tw', '_sre', 'platform', '_frozen_importlib_external', '_json', 'shlex', 'codecs', 'annotationlib', 'statistics', '_winapi', 'ensurepip', 'operator', 'itertools', '_pydecimal', 'abc', 'xxlimited', 'antigravity', 'threading', '_signal', 'fcntl', 'webbrowser', 'configparser', 'bdb', 'copyreg', 'dis', 'functools', '_zoneinfo', 'idlelib', 'selectors', '_pydatetime', '_compat_pickle'})

======================================================================
FAIL: test_sys_stdlib_modules_agrees (stdlibs.tests.StdlibsTest.test_sys_stdlib_modules_agrees)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-stdlibs-2025.4.4-build/stdlibs-2025.4.4/stdlibs/tests/__init__.py", line 47, in test_sys_stdlib_modules_agrees
    self.assertEqual(frozenset(), sys.stdlib_module_names - names)  # type: ignore
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Items in the second set but not the first:
'_hmac'
'_ast_unparse'
'_types'

----------------------------------------------------------------------
Ran 7 tests in 0.039s

FAILED (failures=2)

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/08899541-python-stdlibs/

For all our attempts to build python-stdlibs with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-stdlibs/

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.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
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.


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