Bug 2245654 - python-nodeenv fails to build with Python 3.13: ModuleNotFoundError: No module named 'pipes'
Summary: python-nodeenv fails to build with Python 3.13: ModuleNotFoundError: No modul...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-nodeenv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
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-31 14:25 UTC (History)
6 users (show)

Fixed In Version: python-nodeenv-1.8.0-3.fc40
Clone Of:
Environment:
Last Closed: 2023-10-31 14:25:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ekalinin nodeenv issues 341 0 None open Remove usage of `pipes` 2023-10-23 13:45:43 UTC
Github ekalinin nodeenv pull 342 0 None open On Python 3.3+, replace pipes.quote with shlex.quote 2023-10-23 13:45:43 UTC

Description Karolina Surma 2023-10-23 13:13:00 UTC
python-nodeenv fails to build with Python 3.13.0a1.

+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/nodeenv-1.8.0/pyproject-wheeldir --output /builddir/build/BUILD/python-nodeenv-1.8.0-2.fc40.x86_64-pyproject-buildrequires
Handling setuptools >= 40.8 from default build backend
Requirement satisfied: setuptools >= 40.8
   (installed: setuptools 68.2.2)
Handling wheel from default build backend
Requirement satisfied: wheel
   (installed: wheel 0.41.2)
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 555, in main
    generate_requires(
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 451, in generate_requires
    generate_build_requirements(backend, requirements)
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 274, in generate_build_requirements
    new_reqs = get_requires(config_settings=requirements.config_settings)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 507, in run_setup
    super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
  File "/usr/lib/python3.13/site-packages/setuptools/build_meta.py", line 341, in run_setup
    exec(code, locals())
  File "<string>", line 11, in <module>
  File "/builddir/build/BUILD/nodeenv-1.8.0/nodeenv.py", line 25, 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/06546812-python-nodeenv/

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

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 Fedora Update System 2023-10-31 14:24:32 UTC
FEDORA-2023-5f1e1a5501 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2023-5f1e1a5501

Comment 2 Fedora Update System 2023-10-31 14:25:17 UTC
FEDORA-2023-5f1e1a5501 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.