Bug 2093193

Summary: python-build fails to build with Python 3.11: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: python-virtualenvAssignee: Lumír Balhar <lbalhar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: cstratak, lbalhar, m.cyprian, mhroncok, mrunge, python-sig, smilner, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-virtualenv-20.13.4-2.fc37 python-virtualenv-20.13.4-2.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-07 14:43:07 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: 2016048    

Description Tomáš Hrnčiar 2022-06-03 08:17:25 UTC
python-build fails to build with Python 3.11.0b3.

ImportError while loading conftest '/builddir/build/BUILD/build-0.8.0/tests/conftest.py'.
tests/conftest.py:13: in <module>
    import build.env
../../BUILDROOT/python-build-0.8.0-2.fc37.x86_64/usr/lib/python3.11/site-packages/build/env.py:27: in <module>
    import virtualenv
/usr/lib/python3.11/site-packages/virtualenv/__init__.py:3: in <module>
    from .run import cli_run, session_via_cli
/usr/lib/python3.11/site-packages/virtualenv/run/__init__.py:14: in <module>
    from .plugin.creators import CreatorSelector
/usr/lib/python3.11/site-packages/virtualenv/run/plugin/creators.py:6: in <module>
    from virtualenv.create.via_global_ref.builtin.builtin_way import VirtualenvBuiltin
/usr/lib/python3.11/site-packages/virtualenv/create/via_global_ref/builtin/builtin_way.py:7: in <module>
    from virtualenv.create.creator import Creator
/usr/lib/python3.11/site-packages/virtualenv/create/creator.py:15: in <module>
    from virtualenv.discovery.cached_py_info import LogCmd
/usr/lib/python3.11/site-packages/virtualenv/discovery/cached_py_info.py:11: in <module>
    import pipes
/usr/lib64/python3.11/pipes.py:68: in <module>
    warnings._deprecated(__name__, remove=(3, 13))
/usr/lib64/python3.11/warnings.py:514: in _deprecated
    warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13

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

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

For all our attempts to build python-build with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/python-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.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
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 Lumír Balhar 2022-06-06 04:58:03 UTC
From the traceback, it seems that the problem is actually in python-virtualenv, not python-build. Not a problem as I maintain them both.

Comment 2 Lumír Balhar 2022-06-06 06:09:13 UTC
I can confirm that this fix proposed upstream fixes the problem in python-build: https://github.com/pypa/virtualenv/pull/2351

Comment 3 Lumír Balhar 2022-06-06 06:11:50 UTC
Downstream PR: https://src.fedoraproject.org/rpms/python-virtualenv/pull-request/67

Comment 4 Fedora Update System 2022-06-07 14:42:24 UTC
FEDORA-2022-f06e5c0a53 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f06e5c0a53

Comment 5 Fedora Update System 2022-06-07 14:43:07 UTC
FEDORA-2022-f06e5c0a53 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2022-06-09 17:28:56 UTC
FEDORA-2022-4c6ea8978c has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-4c6ea8978c

Comment 7 Fedora Update System 2022-06-10 01:39:51 UTC
FEDORA-2022-4c6ea8978c has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-4c6ea8978c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-4c6ea8978c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-06-15 01:30:22 UTC
FEDORA-2022-4c6ea8978c has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.