Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5541 Discussions

from .ie_api import * (ImportError: DLL load failed:)

BRIANSHU62
Novice
1,883 Views

Hi,

I run setupvars.bat and set the path that I saw in the Community but still get this error.

w_openvino_toolkit_p_2020.3.194.exe, Visual Studio Community 2019, CMake 3.19.2

# ===============================================================

File "01_object_detection_openvino_module.py", line 17, in <module>
from openvino.inference_engine import IECore
File "C:\Program Files (x86)\IntelSWTools\openvino\python\python3.6\openvino\inference_engine\__init__.py", line 1, in <module>
from .ie_api import *

ImportError: DLL load failed: 找不到指定的模組。

# ================================================================

C:\Program Files (x86)\IntelSWTools\openvino\python\python3.6\openvino\inference_engine
C:\Program Files (x86)\IntelSWTools\openvino\python\python3.6\openvino
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\bin
C:\Program Files (x86)\IntelSWTools\openvino\opencv\bin
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\bin\intel64\Release
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\bin\intel64\Debug
C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\inference_engine\external\hddl\bin
C:\Program Files (x86)\IntelSWTools\openvino\opencv\bin


Best regards

Brian

0 Kudos
1 Solution
BRIANSHU62
Novice
1,812 Views

Aznie,

Thanks! I solved the issue cause the powershell could not get right path(I don't know why.)

I use pure command line to enable VSCode then it could work based on the setting from community.

Best regards

Brian

View solution in original post

8 Replies
IntelSupport
Community Manager
1,866 Views

 

Hi Brian,

Let me confirm my understanding first. Did this issue arise during the initialization of the OpenVINO environment or you are running any OpenVINO sample? If you are running the OpenVINO sample, make sure to run the sample on a terminal that you have set up the environment variables by running the setupvars.bat script under _C:\Program Files (x86)\IntelSWTools\openvino\bin_ directory.

 

Please note there is a newer release available (2021.2 release note)


Regards,

Aznie


BRIANSHU62
Novice
1,860 Views

Hi,

I am trying to use my python about deploy the model. and I re-install OS and use newest openvino 2021, But still get same situation.

Best regards

Brian

 

Code01.PNGCode02.PNG

BRIANSHU62
Novice
1,855 Views

Hi,

 

Let me confirm my understanding first. Did this issue arise during the initialization of the OpenVINO environment or you are running any OpenVINO sample? << Run the .py as above picture.

If you are running the OpenVINO sample, make sure to run the sample on a terminal that you have set up the environment variables by running the setupvars.bat script under _C:\Program Files (x86)\IntelSWTools\openvino\bin_ directory. << Yes, I had ran the setupvars.bat, still get the issue

 

Thanks

Brian

IntelSupport
Community Manager
1,836 Views

Hi Brian,

Are you running your own sample code or using any OpenVINO toolkit sample? If you run your own sample code, could you please share the related file of your application for us to test the code at our end? You can share your Github link or in a zip file.

Hence, have you tried to run the verification script to verify your OpenVINO Toolkit installation? If not, please try to run the demo_squeezenet_download_convert-run.bat file to verify the installation by following the instruction from the documentation.

Regards,

Aznie


BRIANSHU62
Novice
1,826 Views

Aznie,

Thanks! Below what I verify result for your reference.

Verify_Result.PNG

Even I just use new .py or in python command line for below instruction (just 2 lines)

>>> import openvino
>>> from openvino.inference_engine import IECore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\Intel\openvino_2021\python\python3.6\openvino\inference_engine\__init__.py", line 1, in <module>
from .ie_api import *
ImportError: DLL load failed: 找不到指定的模組。

Best regards

Brian

BRIANSHU62
Novice
1,823 Views

Aznie,

I saw the setupvars.bat the settign has  ["OpenCV_DIR=%INTEL_OPENVINO_DIR%\opencv\x64\vc14\lib"]

But in my installation folder has no this folder, not sure if this is relative to my issue.  

BRIANSHU62_0-1609643195173.png

Best regards

Brian

BRIANSHU62
Novice
1,813 Views

Aznie,

Thanks! I solved the issue cause the powershell could not get right path(I don't know why.)

I use pure command line to enable VSCode then it could work based on the setting from community.

Best regards

Brian

View solution in original post

IntelSupport
Community Manager
1,800 Views

Hi Brian,

I glad that you are able to solve the issue and thank you for sharing the solution. 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,

Aznie

Intel Customer Support


Reply