- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have an openvino python code and want to run them in exe file format using pyinstaller.
When I convert them using following command:
pyinstaller --onefile <filename>.py
I'm getting the following error when running the exe file:
ModuleNotFoundError: No module named 'openvino.inference_engine.constants'
I tried using --add-binary, --add-data, But the command is not sucessfully running.
Please let me know the proper command to make in exe file.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AjithKJ,
Thank you for reaching out to us.
What is the OpenVINO™ version that you are using, and are you able to run the code in Python? On the other hand, please note that PyInstaller is not officially supported by OpenVINO™
From the error message you provided, the code seems to be using the old OpenVINO™ 1.0 API. For your information, starting from OpenVINO™ toolkit 2024, OpenVINO™ C++/C/Python 1.0 APIs have been deprecated. Please refer to the OpenVINO™ API 2.0 Transition Guide to migrate Inference Engine-based applications to OpenVINO™ API 2.0.
Regards,
Megat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AjithKJ,
Thank you for your question. This thread will no longer be monitored since we have provided a suggestion. If you need any additional information from Intel, please submit a new question.
Regards,
Megat

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page