You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
@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.
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.
Dockerfile.txt
Relevant log output
No response
Issue submission checklist
The text was updated successfully, but these errors were encountered: