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.
6592 토론

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

BRIANSHU62
초보자
7,878 조회수

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 포인트
1 솔루션
BRIANSHU62
초보자
7,806 조회수

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

원본 게시물의 솔루션 보기

0 포인트
8 응답
IntelSupport
관리자
7,861 조회수

 

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


0 포인트
BRIANSHU62
초보자
7,855 조회수

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

0 포인트
BRIANSHU62
초보자
7,850 조회수

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

0 포인트
IntelSupport
관리자
7,831 조회수

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


0 포인트
BRIANSHU62
초보자
7,821 조회수

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

0 포인트
BRIANSHU62
초보자
7,818 조회수

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

0 포인트
BRIANSHU62
초보자
7,807 조회수

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

0 포인트
IntelSupport
관리자
7,795 조회수

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


응답