Bug 2245655 - ninja-build fails to build with Python 3.13: ModuleNotFoundError: No module named 'pipes'
Summary: ninja-build fails to build with Python 3.13: ModuleNotFoundError: No module n...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: ninja-build
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Boeckel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.13
TreeView+ depends on / blocked
 
Reported: 2023-10-23 13:13 UTC by Karolina Surma
Modified: 2023-10-24 09:27 UTC (History)
8 users (show)

Fixed In Version: ninja-build-1.11.1-5.fc40
Clone Of:
Environment:
Last Closed: 2023-10-24 00:16:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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