-
Notifications
You must be signed in to change notification settings - Fork 96
Deprecated openvino.runtime imports cause DeprecationWarning in two demos #499
Copy link
Copy link
Open
Description
Affected files:
ai_ref_kits/conversational_ai_chatbot/convert_and_optimize_chat.py(lines 6-7)demos/virtual_ai_assistant_demo/main.py(lines 26-27)
Environment:
- OpenVINO: 2025.x / 2026.0
- Python: 3.9–3.12
- OS: All
Problem:
Both files use bare openvino.runtime imports with no fallback:
from openvino.runtime import opset10 as ops
from openvino.runtime import passesThe openvino.runtime namespace was deprecated in OpenVINO 2025.2 and is
scheduled for removal in 2026.0. Unlike utils/notebook_utils.py which
wraps these in a try/except for backward compatibility, these files use
bare imports that will raise an ImportError on 2026.0 and currently
emit DeprecationWarning on 2025.x on every execution.
Expected behavior:
No deprecation warnings. Forward compatibility with 2026.0.
Proposed fix:
import openvino.opset10 as ops
from openvino import passesI'm a GSoC 2026 applicant and would like to submit a fix for this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels