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]: pip's dependency resolver does not currently take into account all the packages that are installed. - openvino 2023.2.0 requires openvino-telemetry>=2023.2.1, which is not installed. #23876

Closed
3 tasks done
ionutnechita-intel opened this issue Apr 4, 2024 · 15 comments · Fixed by #23913 or #23917
Assignees
Labels
bug Something isn't working category: packaging OpenVINO packaging / distribution
Milestone

Comments

@ionutnechita-intel
Copy link

ionutnechita-intel commented Apr 4, 2024

OpenVINO Version

2023.2.0

Operating System

Other (Please specify in description)

Device used for inference

CPU

Framework

PyTorch

Model used

No response

Issue description

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
openvino 2023.2.0 requires openvino-telemetry>=2023.2.1, which is not installed.

dpkg -l | grep openvino
ii  libopenvino-2023.2.0                              2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-auto-batch-plugin-2023.2.0            2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-auto-plugin-2023.2.0                  2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-dev-2023.2.0                          2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-hetero-plugin-2023.2.0                2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-intel-cpu-plugin-2023.2.0             2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-intel-gpu-plugin-2023.2.0             2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-ir-frontend-2023.2.0                  2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-onnx-frontend-2023.2.0                2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-paddle-frontend-2023.2.0              2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-pytorch-frontend-2023.2.0             2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-tensorflow-frontend-2023.2.0          2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  libopenvino-tensorflow-lite-frontend-2023.2.0     2023.2.0.13089                                     amd64        OpenVINO™ Toolkit
ii  openvino-2023.2.0                                 2023.2.0.13089                                     all          OpenVINO™ Toolkit
ii  openvino-libraries-2023.2.0                       2023.2.0.13089                                     all          OpenVINO™ Toolkit
ii  openvino-libraries-dev-2023.2.0                   2023.2.0.13089                                     all          OpenVINO™ Toolkit
ii  openvino-samples-2023.2.0                         2023.2.0.13089                                     all          OpenVINO™ Toolkit
ii  openvino-samples-python-2023.2.0                  2023.2.0.13089                                     all          OpenVINO™ Toolkit
ii  python3-openvino-2023.2.0                         2023.2.0.13089                                     amd64        OpenVINO™ Toolkit

Ubuntu 22.04 LTS
Kernel: 5.15 iotg

Step-by-step reproduction

# sudo apt-get install openvino-2023.2.0 python3-openvino-2023.2.0
# rm -Rf ~/.local
# pip3 install mediapipe
# pip3 install numpy==1.24.3

And view error with openvino-telemetry.

User is non-privileged, such 1001(user1).

Relevant log output

# pip3 list| grep openvino

openvino                             2023.2.0
openvino-msgs                        0.9.0

Only this python packages. Not exist other openvino packages and openvino-telemetry is not installed from debian packages.

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

mlukasze commented Apr 5, 2024

did you try to install whole (openvino etc) via pip directly?

@ionutnechita-intel
Copy link
Author

No, only debian packages.

@ilya-lavrenov
Copy link
Contributor

Hi @ionutnechita-intel
Why are you searching for openvino-telemetry ? It's optional dependency, which is available only for pip, conda distribution channels.

@ionutnechita-intel
Copy link
Author

ionutnechita-intel commented Apr 5, 2024

Yes, understood.
But why is not possible to have this at debian packages?

From pip search i view this:

pip3 show openvino
Name: openvino
Version: 2023.2.0
Summary: OpenVINO(TM) Runtime
Home-page:
https://docs.openvino.ai/2023.0/index.html
Author: Intel(R) Corporation
Author-email: [email protected]
License: OSI Approved :: Apache Software License
Location: /usr/lib/python3/dist-packages
Requires: numpy,
openvino-telemetry
Required-by:

openvino have required dependencies for openvino-telemetry. Why is not optional openvino-telemetry and is required now?

@mlukasze
Copy link
Contributor

mlukasze commented Apr 5, 2024

you are aware that telemetry is pure python project, right?
https://github.com/openvinotoolkit/telemetry

@ionutnechita-intel
Copy link
Author

From pip search i view this:

pip3 show openvino
Name: openvino
Version: 2023.2.0
Summary: OpenVINO(TM) Runtime
Home-page:
https://docs.openvino.ai/2023.0/index.html
Author: Intel(R) Corporation
Author-email: [email protected]
License: OSI Approved :: Apache Software License
Location: /usr/lib/python3/dist-packages
Requires: numpy,
openvino-telemetry
Required-by:

openvino have required dependencies for openvino-telemetry. Why is not optional openvino-telemetry and is required now?

@ionutnechita-intel
Copy link
Author

Maybe in future is fine to have openvino-telemetry inside a debian packages.

@ilya-lavrenov
Copy link
Contributor

Since openvino-telemetry is available in pip, we can add it as required dependency.
On code level - it's optional step, so OpenVINO will not fail without it

@ionutnechita-intel
Copy link
Author

Understood. But for pip at package manager in installation progress at other python packages, this openvino-telemetry package remain required.
And this cause failing.
This is a incomplete condition.

@ionutnechita-intel
Copy link
Author

Is possible in feature, maybe in python3-openvino-2024.0.1 to have openvino-telemetry inside of debian package?

@ilya-lavrenov
Copy link
Contributor

And this cause failing.

Could you please provide exact command to reproduce failures?

@ionutnechita-intel
Copy link
Author

Steps:

# sudo apt-get install openvino-2023.2.0 python3-openvino-2023.2.0
# rm -Rf ~/.local
# pip3 install mediapipe
# pip3 install numpy==1.24.3

And view error with openvino-telemetry.

User is non-privileged, such 1001(user1).

@ppwwyyxx
Copy link

ppwwyyxx commented Apr 6, 2024

Saw the same problem. Please don't list openvino-telemetry as a required dependency, if it's not actually a required dependency.

@ionutnechita-intel
Copy link
Author

Saw the same problem. Please don't list openvino-telemetry as a required dependency, if it's not actually a required dependency.

Thank you for reproduce this.

@ilya-lavrenov ilya-lavrenov added this to the 2024.1 milestone Apr 8, 2024
@ilya-lavrenov ilya-lavrenov added category: packaging OpenVINO packaging / distribution and removed support_request labels Apr 8, 2024
ilya-lavrenov added a commit that referenced this issue Apr 8, 2024
### Details:
- Install openvino-telementry as part of `python3-openvino` debian
package
 - Ported #23913

### Tickets:
 - Closes #23876
@ilya-lavrenov ilya-lavrenov linked a pull request Apr 8, 2024 that will close this issue
@ilya-lavrenov
Copy link
Contributor

Will be a part of 2024.1

ilya-lavrenov added a commit that referenced this issue Apr 8, 2024
### Details:
- Install openvino-telementry as part of `python3-openvino` debian
package

### Tickets:
 - Closes #23876
bbielawx pushed a commit to bbielawx/openvino that referenced this issue Apr 12, 2024
### Details:
- Install openvino-telementry as part of `python3-openvino` debian
package

### Tickets:
 - Closes openvinotoolkit#23876
ilya-lavrenov added a commit to ilya-lavrenov/openvino that referenced this issue Apr 26, 2024
- Install openvino-telementry as part of `python3-openvino` debian
package
 - Ported openvinotoolkit#23913

 - Closes openvinotoolkit#23876
alvoron pushed a commit to alvoron/openvino that referenced this issue Apr 29, 2024
### Details:
- Install openvino-telementry as part of `python3-openvino` debian
package

### Tickets:
 - Closes openvinotoolkit#23876
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: packaging OpenVINO packaging / distribution
Projects
None yet
5 participants