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.
6157 Discussions

Cannot import cv2 when running a python sample

Aschuch
Employee
266 Views

Hello,

 

After downloading openvino and initializing the openvino environment using the setupvars.bat, I tried running the sample code for classification_sample.py and got the following error: 

 

Traceback (most recent call last):
File "classification_sample.py", line 21, in <module>
import cv2
ImportError: DLL load failed: The specified module could not be found.

 

I'm not sure how to fix this error.

 

Thank you!

0 Kudos
1 Solution
Aschuch
Employee
218 Views

Hi!

 

I updated python from version 3.7.9 to 3.8.10 and the issue was fixed! Thank you for the help.

 

Ana

View solution in original post

3 Replies
Wan_Intel
Moderator
228 Views

Hi Aschuch,

Thanks for reaching out to us.

 

Could you please run the sample code in a Python Virtual Environment and see if the issue can be resolved? The steps to set up the Python Virtual Environment and install the OpenVINO™ Development Tools Package are available here.

 

Hope it helps.

 

 

Regards,

Wan

 

Aschuch
Employee
219 Views

Hi!

 

I updated python from version 3.7.9 to 3.8.10 and the issue was fixed! Thank you for the help.

 

Ana

Wan_Intel
Moderator
198 Views

Hi Aschuch,

Thanks for sharing the answer.

This thread will no longer be monitored since this issue has been resolved. 

If you need any additional information from Intel, please submit a new question.

 

 

Regards,

Wan


Reply