Package Details: python-openvino 2026.0.0-1

Git Clone URL: https://aur.archlinux.org/openvino.git (read-only, click to copy)
Package Base: openvino
Description: Python bindings for OpenVINO
Upstream URL: https://docs.openvino.ai/
Licenses: Apache-2.0, LicenseRef-custom
Submitter: dbermond
Maintainer: dbermond
Last Packager: dbermond
Votes: 17
Popularity: 0.64
First Submitted: 2020-12-23 22:29 (UTC)
Last Updated: 2026-03-01 19:09 (UTC)

Dependencies (29)

Required by (1)

Sources (27)

Latest Comments

1 2 3 4 5 6 .. 11 Next › Last »

kistlin commented on 2026-02-25 13:08 (UTC)

On an up-to-date Arch I get

... 94%] Built target pyopenvino_version
[ 94%] Building CXX object src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/core/async_infer_queue.cpp.o
[ 94%] Building CXX object src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/core/common.cpp.o
[ 94%] Building CXX object src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/core/compiled_model.cpp.o
[ 94%] Building CXX object src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/core/core.cpp.o
...
/usr/include/pybind11/pybind11.h:2459:25: error: static assertion failed: def_property family does not currently support call_guard. Use a py::cpp_function instead.
 2459 |         static_assert(0 == detail::constexpr_sum(detail::is_call_guard<Extra>::value...),
      |                       ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pybind11/pybind11.h:2459:25: note: the comparison reduces to ‘(0 == 1)’
make[2]: *** [src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/build.make:121: src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/core/core.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:6584: src/bindings/python/src/pyopenvino/CMakeFiles/pyopenvino.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'openvino-2025.4.1-2':

TJM commented on 2026-02-23 21:02 (UTC)

Hi @dbermond, thanks for your prompt reply. The ONNX-related compile errors are mentioned by @carlosnewmusic. I'm not sure why this is happening. But if it hits, one could try this patch or build it in a clean environment with pkgctl build -c /path/to/aur-package

dbermond commented on 2026-02-22 20:43 (UTC)

@TJM The package is building fine for me, and I cannot reproduce an onnx-related build issue. If you think such a patch a is needed, please send it upstream.

TJM commented on 2026-02-22 08:30 (UTC)

Please find the extra patch file 030-openvino-fix-pybind11-compatibility.patch that fixes the ONNX-related compile error:

--- a/src/bindings/python/src/pyopenvino/core/core.cpp
+++ b/src/bindings/python/src/pyopenvino/core/core.cpp
@@ -782,8 +782,7 @@ void regclass_Core(py::module m) {
             )");

     cls.def_property_readonly("available_devices",
-                              &ov::Core::get_available_devices,
-                              py::call_guard<py::gil_scoped_release>(),
+                              py::cpp_function(&ov::Core::get_available_devices, py::call_guard<py::gil_scoped_release>()),
                               R"(
                                     Returns devices available for inference Core objects goes over all registered plugins.

--- a/src/bindings/python/src/pyopenvino/core/infer_request.cpp
+++ b/src/bindings/python/src/pyopenvino/core/infer_request.cpp
@@ -816,10 +816,11 @@ void regclass_InferRequest(py::module m) {

     cls.def_property_readonly(
         "profiling_info",
-        [](InferRequestWrapper& self) {
-            return self.m_request->get_profiling_info();
-        },
-        py::call_guard<py::gil_scoped_release>(),
+        py::cpp_function(
+            [](InferRequestWrapper& self) {
+                return self.m_request->get_profiling_info();
+            },
+            py::call_guard<py::gil_scoped_release>()),
         R"(
             Performance is measured per layer to get feedback on the most time-consuming operation.
             Not all plugins provide meaningful data!

Please also patch the PKGBUILD file for addressing the new patch file:

--- PKGBUILD    2026-02-22 00:28:57.887801335 -0800
+++ PKGBUILD    2026-02-21 23:21:42.618749439 -0800
@@ -59 +59,2 @@
-        '020-openvino-disable-werror.patch')
+        '020-openvino-disable-werror.patch'
+        '030-openvino-fix-pybind11-compatibility.patch')
@@ -85 +86,2 @@
-            'd5ff4b19ca9daf2b052650d2d7f60297239091c68e57fd7d5637508be0ef0e52')
+            'd5ff4b19ca9daf2b052650d2d7f60297239091c68e57fd7d5637508be0ef0e52'
+            '2ded2bd7cba570c3857730ebd3fbfc7efea25f6560929bf59e90d9407b638f9f')
@@ -126,0 +129 @@
+    patch -d openvino -Np1 -i "${srcdir}/030-openvino-fix-pybind11-compatibility.patch"

carlosnewmusic commented on 2026-02-07 11:25 (UTC)

build error https://pastes.io/openvino-b

leenux commented on 2026-01-09 12:09 (UTC)

Tried again, same error. [ 21%] Building CXX object src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/src/parser.cpp.o In file included from /home/lee/.cache/rua/build/openvino/src/openvino/src/frontends/onnx/onnx_common/include/onnx_common/parser.hpp:6, from /home/lee/.cache/rua/build/openvino/src/openvino/src/frontends/onnx/onnx_common/src/parser.cpp:5: /usr/include/onnx/onnx_pb.h:53:10: fatal error: onnx/onnx.pb.h: No such file or directory 53 | #include "onnx/onnx.pb.h" | ^~~~ compilation terminated. make[2]: *** [src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/build.make:93: src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/src/parser.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:4270: src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

dbermond commented on 2026-01-07 18:50 (UTC)

@leenux I have just checked, and the package is building fine. I cannot reproduce your issue.

leenux commented on 2026-01-07 10:01 (UTC)

Not building here, same error: .cpp:5: /usr/include/onnx/onnx_pb.h:53:10: fatal error: onnx/onnx.pb.h: No such file or directory 53 | #include "onnx/onnx.pb.h" | ^~~~ compilation terminated. make[2]: *** [src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/build.make:93: src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/src/parser.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:4270: src/frontends/onnx/onnx_common/CMakeFiles/openvino_onnx_common.dir/all] Error 2 make: *** [Makefile:156: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

carlosnewmusic commented on 2025-12-14 14:55 (UTC)

build error https://pastes.io/openvino-build-error

dbermond commented on 2025-12-03 00:55 (UTC)

@alzpmq fixed in package version 2025.4.0-2 (no patch needed). Thanks for reporting.