Bug 2245655

Summary: ninja-build fails to build with Python 3.13: ModuleNotFoundError: No module named 'pipes'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: ninja-buildAssignee: Ben Boeckel <fedora>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: carl, fedora, i, igor.raits, jperrin, ksurma, mhroncok, pbonzini
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ninja-build-1.11.1-5.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-24 00:16:11 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-23 13:13:15 UTC
ninja-build fails to build with Python 3.13.0a1.

+ /usr/bin/python3 configure.py --bootstrap --verbose
Traceback (most recent call last):
  File "/builddir/build/BUILD/ninja-1.11.1/configure.py", line 26, in <module>
    import pipes
ModuleNotFoundError: No module named 'pipes'

According to https://docs.python.org/3.13/whatsnew/3.13.html module pipes was removed:

PEP 594: Remove the pipes module, deprecated in Python 3.11: use the subprocess module 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/06546748-ninja-build/

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

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 Ben Boeckel 2023-10-23 23:43:49 UTC
PR from upstream: https://github.com/ninja-build/ninja/pull/2340

Comment 2 Fedora Update System 2023-10-24 00:13:18 UTC
FEDORA-2023-df39ef58a2 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-df39ef58a2

Comment 3 Fedora Update System 2023-10-24 00:16:11 UTC
FEDORA-2023-df39ef58a2 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.