Bug 1896411
Summary: | libsolv fails with Python 3.10: _solv.so: undefined symbol: PyObject_AsReadBuffer | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | libsolv | Assignee: | Miro Hrončok <mhroncok> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dmach, igor.raits, jmracek, jrohel, karsten, mcermak, mhroncok, ngompa13, nphilipp, pkratoch, rpm-software-management, thrnciar |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libsolv-0.7.15-3.eln108 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-12-08 10:20:40 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: | 1890881 |
Description
Tomáš Hrnčiar
2020-11-10 13:56:44 UTC
We might just need to rebuild lxml with patched cython, than make sure the old lxml is not in our copr any more and than rebuild fedmod. That solves the first problem, but goes to: Traceback (most recent call last): File "<string>", line 1, in <module> File "/builddir/build/BUILD/fedmod-0.6.3/_fedmod/cli.py", line 8, in <module> from . import _fetchrepodata, _repodata File "/builddir/build/BUILD/fedmod-0.6.3/_fedmod/_repodata.py", line 7, in <module> import solv File "/usr/lib64/python3.10/site-packages/solv.py", line 15, in <module> import _solv ImportError: /usr/lib64/python3.10/site-packages/_solv.so: undefined symbol: PyObject_AsReadBuffer This is a problem in libsolv. https://docs.python.org/3.10/whatsnew/3.10.html#id4 PyObject_AsCharBuffer(), PyObject_AsReadBuffer(), PyObject_CheckReadBuffer(), and PyObject_AsWriteBuffer() are removed. Please migrate to new buffer protocol; PyObject_GetBuffer() and PyBuffer_Release(). https://bugs.python.org/issue41103 libsolv itself builds fine, so the Python binding is most likely not tested in %check. I've reported this to libsolv upstream: https://github.com/openSUSE/libsolv/issues/410 FEDORA-2021-28834317a6 has been pushed to the Fedora ELN stable repository. If problem still persists, please make note of it in this bug report. |