Package Details: python-openvino 2026.2.1-2

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: 18
Popularity: 0.70
First Submitted: 2020-12-23 22:29 (UTC)
Last Updated: 2026-07-11 12:39 (UTC)

Required by (1)

Sources (28)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 13 Next › Last »

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.

alzpmq commented on 2025-12-02 17:17 (UTC) (edited on 2025-12-02 17:37 (UTC) by alzpmq)

The libopenvino_onnx_frontend.so.2025.4.0 missing _ZN4absl12lts_2025081412log_internal21UpdateGlobalVLogLevelEi, which is in libabsl_log_flags.so.2508.0.0 but not link. without it the onnx frontend support is broken. I try this patch can link it

--- a/src/frontends/onnx/frontend/CMakeLists.txt
+++ b/src/frontends/onnx/frontend/CMakeLists.txt
@@ -69,13 +69,15 @@ if(NOT BUILD_SHARED_LIBS)
     file(APPEND ${static_reg_file} "}  // namespace onnx\n}  // namespace frontend\n}  // namespace ov\n#undef ONNX_DECL_OP\n")
 endif()

+find_package(absl REQUIRED CONFIG)
+
 ov_add_frontend(NAME onnx
                 LINKABLE_FRONTEND
                 PROTOBUF_REQUIRED
                 PROTOBUF_LITE
                 SKIP_NCC_STYLE
                 FILEDESCRIPTION "FrontEnd to load and convert ONNX file format"
-                LINK_LIBRARIES openvino_onnx_common openvino::core::dev)
+                LINK_LIBRARIES openvino_onnx_common openvino::core::dev "$<LINK_LIBRARY:WHOLE_ARCHIVE,absl::log_flags>")

 set(ONNX_OPSET_VERSION 21 CACHE INTERNAL "Supported version of ONNX operator set")
 target_compile_definitions(${TARGET_NAME} PRIVATE ONNX_OPSET_VERSION=${ONNX_OPSET_VERSION})
--- a/src/frontends/paddle/src/CMakeLists.txt
+++ b/src/frontends/paddle/src/CMakeLists.txt
@@ -2,11 +2,13 @@
 # SPDX-License-Identifier: Apache-2.0
 #

+find_package(absl REQUIRED CONFIG)
+
 ov_add_frontend(NAME paddle
                 LINKABLE_FRONTEND
                 PROTOBUF_REQUIRED
                 PROTOBUF_LITE
                 FILEDESCRIPTION "FrontEnd to load and convert PaddlePaddle file format"
-                LINK_LIBRARIES openvino::util openvino::core::dev)
+                LINK_LIBRARIES openvino::util openvino::core::dev "$<LINK_LIBRARY:WHOLE_ARCHIVE,absl::log_flags>")

 ov_build_target_faster(openvino_paddle_frontend PCH)