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]: openvino2024.1.0 ImportError: cannot import name 'layout_helpers' from 'openvino' (/usr/local/lib/python3.10/site-packages/openvino/__init__.py) #24987

Open
3 tasks done
drimyus opened this issue Jun 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working support_request

Comments

@drimyus
Copy link

drimyus commented Jun 12, 2024

OpenVINO Version

2024.1.0

Operating System

Other (Please specify in description)

Device used for inference

CPU

Framework

None

Model used

No response

Issue description

Version: openvino2024.1.0

pip3 install openvino==2024.1.0

But when I run the object detection demo. it failed.
ImportError: cannot import name 'layout_helpers' from 'openvino' (/usr/local/lib/python3.10/site-packages/openvino/init.py)

 from model_zoo.model_api.adapters import create_core, OpenvinoAdapter, OVMSAdapter
  File "/usr/local/lib/python3.10/site-packages/model_zoo/model_api/adapters/__init__.py", line 18, in <module>
    from .openvino_adapter import create_core, OpenvinoAdapter
  File "/usr/local/lib/python3.10/site-packages/model_zoo/model_api/adapters/openvino_adapter.py", line 27, in <module>
    from .utils import Layout
  File "/usr/local/lib/python3.10/site-packages/model_zoo/model_api/adapters/utils.py", line 18, in <module>
    from openvino import layout_helpers
ImportError: cannot import name 'layout_helpers' from 'openvino' (/usr/local/lib/python3.10/site-packages/openvino/__init__.py)

Step-by-step reproduction

No response

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.
@drimyus drimyus added bug Something isn't working support_request labels Jun 12, 2024
@Wovchena
Copy link
Contributor

Wovchena commented Jun 22, 2024

  1. Are you able to import layout_helpers directly:
python3 -c "from openvino import layout_helpers"
  1. From a new env:
python3 -m venv venv
source ./venv/bin/activate
python -m pip install openvino==2024.1.0
python -c "from openvino import layout_helpers"
  1. Using that new env try running object detection demo.

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

No branches or pull requests

2 participants