Noticed this on a Fedora (Rawhide) Box that has capnp 1.2.0 (recently updated from 1.1.0) and pycapnp 2.1.0 installed, but was skipping interface_ipc.py as if the Python module was not available. The failure was that pycanp 2.1.0 tries to load an older shared lib, and fails:
Remaining jobs: [interface_ipc.py]
1/1 - interface_ipc.py failed, Duration: 0 s
stdout:
stderr:
Traceback (most recent call last):
File "/root/ci_scratch/build/test/functional/interface_ipc.py", line 20, in <module>
import capnp # type: ignore[import] # noqa: F401
^^^^^^^^^^^^
File "/usr/local/lib64/python3.14/site-packages/capnp/__init__.py", line 36, in <module>
from .version import version as __version__
File "/usr/local/lib64/python3.14/site-packages/capnp/version.py", line 1, in <module>
from .lib.capnp import _CAPNP_VERSION_MAJOR as LIBCAPNP_VERSION_MAJOR # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: libcapnpc.so.1.0.1: cannot open shared object file: No such file or directory
We catch this and skip as if the module isn't available. Updating to pycapnp 2.2.1 solved the issue.