Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
johannesquast opened this issue Aug 14, 2024 · 2 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working category: CI OpenVINO public CI
Milestone

Comments

@johannesquast
Copy link

johannesquast commented Aug 14, 2024

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

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
  • There is reproducer code and related data files such as images, videos, models, etc.
@johannesquast johannesquast added bug Something isn't working support_request labels Aug 14, 2024
@ilya-lavrenov ilya-lavrenov added the category: CI OpenVINO public CI label Aug 14, 2024
@ilya-lavrenov ilya-lavrenov added this to the 2024.4 milestone Aug 14, 2024
@ilya-lavrenov
Copy link
Contributor

@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
Copy link
Contributor

2024.4 is out and fix is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working category: CI OpenVINO public CI
Projects
None yet
Development

No branches or pull requests

4 participants