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

Cannot import cv2 when running a python sample

Aschuch
Employee
448 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
400 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

0 Kudos
3 Replies
Wan_Intel
Moderator
410 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

 

0 Kudos
Aschuch
Employee
401 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

0 Kudos
Wan_Intel
Moderator
380 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


0 Kudos
Reply