Bug 1900529
Summary: | python-pystemd fails to build with Python 3.10: pystemd/dbuslib.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send (uses pregenerated Cython code) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-pystemd | Assignee: | Neal Gompa <ngompa13> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | davide, mhroncok, michel, ngompa13, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-pystemd-0.9.0-1.fc35 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-07-07 20:48:55 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, 1927309, 1927313 |
Description
Miro Hrončok
2020-11-23 09:51:56 UTC
$ rg Generated | grep Cython pystemd-0.8.0/pystemd/dbusexc.c:/* Generated by Cython 0.29.21 */ pystemd-0.8.0/pystemd/journal.c:/* Generated by Cython 0.29.21 */ pystemd-0.8.0/pystemd/daemon.c:/* Generated by Cython 0.29.21 */ pystemd-0.8.0/pystemd/dbuslib.c:/* Generated by Cython 0.29.21 */ However, when I delete them in %prep, I get: + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' Error compiling Cython file: ------------------------------------------------------------ ... # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. # cimport pystemd.dbusc as dbusc ^ ------------------------------------------------------------ pystemd/daemon.pyx:11:8: 'pystemd/dbusc.pxd' not found Error compiling Cython file: ------------------------------------------------------------ ... from libc.stdint cimport uint64_t from pystemd.utils import x2char_star LISTEN_FDS_START = dbusc.SD_LISTEN_FDS_START ^ ------------------------------------------------------------ pystemd/daemon.pyx:17:24: cimported module has no attribute 'SD_LISTEN_FDS_START' Error compiling Cython file: ------------------------------------------------------------ ... class PystemdDaemonError(Exception): "generic daemon error" def listen_fds(int unset_environment=0): return dbusc.sd_listen_fds(unset_environment) ^ ------------------------------------------------------------ pystemd/daemon.pyx:24:14: cimported module has no attribute 'sd_listen_fds' Error compiling Cython file: ------------------------------------------------------------ ... pystates.extend( b'='.join([x2char_star(k.upper()), x2char_star(v, convert_all=True)]) for k, v in kwstates.items() ) state = b'\n'.join(pystates) return dbusc.sd_notify(unset_environment, state) ^ ------------------------------------------------------------ pystemd/daemon.pyx:58:14: cimported module has no attribute 'sd_notify' Error compiling Cython file: ------------------------------------------------------------ ... return dbusc.sd_notify(unset_environment, state) def booted(): "Returns True if system was booted with systemd" cdef int status = dbusc.sd_booted() ^ ------------------------------------------------------------ pystemd/daemon.pyx:63:25: cimported module has no attribute 'sd_booted' Error compiling Cython file: ------------------------------------------------------------ ... cdef: int result uint64_t usec result = dbusc.sd_watchdog_enabled(unset_environment, &usec) ^ ------------------------------------------------------------ pystemd/daemon.pyx:80:16: cimported module has no attribute 'sd_watchdog_enabled' Compiling pystemd/daemon.pyx because it changed. Compiling pystemd/dbusexc.pyx because it changed. Compiling pystemd/dbuslib.pyx because it changed. Compiling pystemd/journal.pyx because it changed. [1/4] Cythonizing pystemd/daemon.pyx Traceback (most recent call last): File "/builddir/build/BUILD/pystemd-0.8.0/setup.py", line 71, in <module> external_modules = cythonize( File "/usr/lib64/python3.9/site-packages/Cython/Build/Dependencies.py", line 1102, in cythonize cythonize_one(*args) File "/usr/lib64/python3.9/site-packages/Cython/Build/Dependencies.py", line 1225, in cythonize_one raise CompileError(None, pyx_file) Cython.Compiler.Errors.CompileError: pystemd/daemon.pyx This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. 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. *** Bug 1969108 has been marked as a duplicate of this bug. *** Hello, This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs). If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem. Hello, This is the second reminder (step 4 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs). If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem. Davide, Michel, do either of you know if this has been addressed upstream yet? We're fixing this upstream, the release tarball doesn't include the necessary bits to regenerate the bindings, and the pregenerated bindings won't work as they are with 3.10. https://src.fedoraproject.org/rpms/python-pystemd/pull-request/1 should do the trick here FEDORA-2021-b5bc0af106 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-b5bc0af106 FEDORA-2021-b5bc0af106 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |