Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6478 Discussions

DLL load failed while importing _pyopenvino: The specified module could not be found

Reyes00
Beginner
3,800 Views

Hi Support Team,

 

It was my first time running the openvino toolkit and i plan to run a demo below are the step that i do for installation:

 

Step 1: Create virtual environment
python -m venv openvino_env

Step 2: Activate virtual environment
openvino_env\Scripts\activate

Step 3: Upgrade pip to latest version
python -m pip install --upgrade pip

Step 4: Download and install the package
pip install openvino-dev==2022.3.1

 

then i clone the toolkit and place in drive C:

https://github.com/openvinotoolkit/openvino.git

 

then i download openzoo

https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/face_recognition_demo/python

 

To run the project

1) setup environment: openvino_env\Scripts\activate

2)Initiate setupvar variable : "C:\openvino\scripts\setupvars\setupvars.bat"

3) then run the command 

python ./face_recognition_demo.py ^
-i /video.mp4 ^
-m_fd /intel/face-detection-retail-0004/FP32/face-detection-retail-0004.xml ^
-m_lm /intel/landmarks-regression-retail-0009/FP32/landmarks-regression-retail-0009.xml ^
-m_reid /intel/face-reidentification-retail-0095/FP32/face-reidentification-retail-0095.xml ^
--verbose ^
-fg "C:/Users/aisignage/Desktop/Openvino/open_model_zoo/demos/face_recognition_demo/python/dataset"

 

Receive Error

Traceback (most recent call last):
File "./face_recognition_demo.py", line 26, in <module>
from openvino.runtime import Core, get_version
File "C:\Users\aisignage\Desktop\Openvino\openvino_env\lib\site-packages\openvino\runtime\__init__.py", line 12, in <module>
from openvino._pyopenvino import get_version
ImportError: DLL load failed while importing _pyopenvino: The specified module could not be found.

 

Some troubleshooting: 

pip show openvino
Name: openvino
Version: 2022.3.1
Summary: OpenVINO(TM) Runtime
Home-page: https://docs.openvino.ai/latest/index.html
Author: Intel(R) Corporation
Author-email: openvino_pushbot@intel.com
License: OSI Approved :: Apache Software License
Location: c:\users\desktop\openvino\openvino_env\lib\site-packages
Requires: numpy
Required-by: openvino-dev

 

May i know how to solve this?

0 Kudos
1 Solution
3 Replies
Zulkifli_Intel
Moderator
3,735 Views

Hi Reyes00,

Thank you for reaching out to Intel Customer Support.

 

Here are the steps that you can use to run Intel Open Model Zoo Demos with Intel Pre-Trained Models.

 

For OpenVINO Runtime:

 

Step 1: Download OpenVINO 2022.3.1 from here

 

Step 2: Unzip the file

 

Step 3: Initialize Environment

Open Command Prompt

Go to the OpenVINO directory

Run setupvars.bat

 

Step 4: Clone Open Model Zoo

git clone -b 2022.3.1 https://github.com/openvinotoolkit/open_model_zoo.git

Download all the required models

 

Step 5:

Run the demo:

python face_recognition_demo.py -i video.mp4 -m_fd face-detection-retail-0004.xml -m_lm landmarks-regression-retail-0009.xml -m_reid face-reidentification-retail-0095.xml -fg face_gallery

 

 

For OpenVINO-Dev

 

Step 1: Create a virtual environment

python -m venv openvino_env

 

Step 2: Activate virtual environment

openvino_env\Scripts\activate

 

Step 3: Upgrade pip to the latest version

python -m pip install --upgrade pip

 

Step 4: Download and install the package

pip install openvino-dev==2022.3.1

 

Step 5: Clone Open Model Zoo

git clone -b 2022.3.1 https://github.com/openvinotoolkit/open_model_zoo.git

Download all the required models

 

Run the demo:

python face_recognition_demo.py -i video.mp4 -m_fd face-detection-retail-0004.xml -m_lm landmarks-regression-retail-0009.xml -m_reid face-reidentification-retail-0095.xml -fg face_gallery


Sincerely,

Zulkifli


0 Kudos
Zulkifli_Intel
Moderator
3,701 Views

Thank you for your question. If you need any additional information from Intel, please submit a new question as this thread is no longer being monitored.


0 Kudos
Reply