openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.25k stars 2.26k forks source link

[Bug]: Ubuntu 22.04 and 24.04 python3-openvino packages and thereby APT installation broken #26061

Closed johannesquast closed 2 weeks ago

johannesquast commented 2 months ago

OpenVINO Version

starting 2024.1.0

Operating System

Other (Please specify in description)

Device used for inference

CPU

Framework

None

Model used

No response

Issue description

Since openvino 2024.1, the python3-openvino-2024.x packages from the APT repositories do not work and the hello_query_device.py only returns an "ModuleNotFoundError: No module named 'openvino._pyopenvino' " error.

This seems to be caused by a pyopenvino .so dynamically library packaged and installed that is built for python 3.8 whereas the versions used with Ubuntu 22.04 or 24.04 are python 3.10 and 3.12 respectively.

Step-by-step reproduction

Either run the install steps documented in Install Intel® Distribution of OpenVINO™ Toolkit for Linux Using APT Repository and try to run the python sample python3 /usr/share/openvino/samples/python/hello_query_device/hello_query_device.py.

Alternatively use the Dockerfile (and remove the txt extension) to easily and quickly reproduce the different install configurations by selecting Ubuntu and OpenVINO version combinations.

The build will fail with the python error message cited above.

# docker build --progress plain .
# FAILS (default args are Ubuntu 22.04 and OpenVINO 2024.3.0)

# Working combinations:
# Ubuntu 20.04 and all OpenVINO 2024.x versions -> docker build --progress plain --build-arg UBUNTU_YEAR=20 --build-arg OPENVINO_VERSION=<DESIRED_VER>
# Ubuntu 22.04 and OpenVINO 2024.0.0 -> docker build --progress plain --build-arg UBUNTU_YEAR=22 --build-arg OPENVINO_VERSION=2024.0.0

# Failing:
# Ubuntu 22.04 and OpenVINO 2024.1.0 or newer -> docker build --progress plain --build-arg UBUNTU_YEAR=22 --build-arg OPENVINO_VERSION=2024.[1|2|3].0
# Ubuntu 24.04 and OpenVINO 2024.1.0 or newer -> docker build --progress plain --build-arg UBUNTU_YEAR=24 --build-arg OPENVINO_VERSION=2024.[1|2|3].0

Dockerfile.txt

Relevant log output

No response

Issue submission checklist

ilya-lavrenov commented 2 months ago

@johannesquast thank you for this bug report. We acknowledge the issue and already have a fix in internal CI. New packages will be published when newer version will be published.

ilya-lavrenov commented 2 weeks ago

2024.4 is out and fix is provided.