Bug 2414567 - python-rstr fails to build with Python 3.15: 3 errors when collecting tests: ModuleNotFoundError: No module named 'sre_parse'
Summary: python-rstr fails to build with Python 3.15: 3 errors when collecting tests: ...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-rstr
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Frédéric Pierret
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.15
TreeView+ depends on / blocked
 
Reported: 2025-11-12 15:16 UTC by Karolina Surma
Modified: 2025-11-12 15:16 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description Karolina Surma 2025-11-12 15:16:58 UTC
python-rstr fails to build with Python 3.15.0a1.

__________________ ERROR collecting rstr/tests/test_xeger.py ___________________
ImportError while importing test module '/builddir/build/BUILD/python-rstr-3.1.0-build/rstr-3.1.0/rstr/tests/test_xeger.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib64/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
rstr/__init__.py:1: in <module>
    from rstr.xeger import Xeger
rstr/xeger.py:2: in <module>
    import sre_parse
E   ModuleNotFoundError: No module named 'sre_parse'
=========================== short test summary info ============================
ERROR rstr/tests/test_package_level_access.py
ERROR rstr/tests/test_rstr.py
ERROR rstr/tests/test_xeger.py
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 3 errors in 0.06s ===============================

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

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.15/fedora-rawhide-x86_64/09789923-python-rstr/

For all our attempts to build python-rstr with Python 3.15, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.15/package/python-rstr/

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

Let us know here if you have any questions.

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