Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1919789
Summary: | setproctitle.getproctitle() errors with Python 3.10: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-setproctitle | Assignee: | Haïkel Guémar <karlthered> |
Status: | NEW --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | andy, clime7, copr-team, jkadlcik, karlthered, mhroncok, msuchy, praiskup, steve.traylen, thrnciar, turecek.dominik |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | 1890881 |
Description
Tomáš Hrnčiar
2021-01-25 07:43:17 UTC
copr-backend is pure Python, no extension modules. The error is surely coming from a compiled C API Python code that copr invokes. I suspect setproctitle: it is an extension module and has %check commented out with a very outdated comment. Moving to setproctitle, easily reproducible:
$ copr mock-config @python/python3.10 fedora-rawhide-x86_64 > /tmp/x.cfg
$ mock -r /tmp/x.cfg --install python3-setproctitle
$ mock -r /tmp/x.cfg --shell
<mock-chroot> sh-5.1# python3
Python 3.10.0a4 (default, Jan 15 2021, 00:00:00)
[GCC 11.0.0 20210119 (Red Hat 11.0.0-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import setproctitle
>>> setproctitle.getproctitle()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. *** Bug 1902276 has been marked as a duplicate of this bug. *** This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build. |