New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from .ie_api import * ImportError: DLL load failed: The specified module could not be found #478
Comments
@qbTrible is not very clear what the steps are to get to this problem. Make sure if you are running the object_detection_demo_yolov3_async.py script on a CMD terminal to setup the environment variables running the setupvars.bat script under _C:\Program Files (x86)\IntelSWTools\openvino\bin_ directory. Have you verified your installation of OpenVINO using verification scripts prior to running YoloV3 demo app? This error looks like a configuration mistake in environment, please make sure to complete all steps given on 2020.1 installation guide for Windows*. Please note there is a newer release available (2020.2 release notes). Regards, |
Hi @qbTrible! Is the issue resolved? I had similar error (DLL for OpenCV) when running cross_check_tool. Make sure you have everything set (link in @avitial comment). If problem is still present then manually fix openvino\scripts\setupvars\setupvars.bat commands, so they match your folder structure. Hope it helps! -Jan |
I got the same exact error when trying "from openvino.inference_engine import IENetwork". However I don't think this is an installation error because when I run the exact same command from the command prompt it works just fine. Also I have run setupvars.bat. I am running this on PyCharm. from openvino.inference_engine import IECore |
Hello i had the same problems. This was what i tested and worked, please do the tests: 1 - Create an environment with python 3.5, 3.6, 3.7, in your case will be python 3.6 and install cython, opencv-contrib-python too.
2 - Copy the openvino python version folder to the packages folder 2.1- Check the location of the site-packages (opencv-openvino)>>pip show pip 2.2 - Copy the openvino folder to the site packages folder For example: 3 - Run the setupvars: NOTE: i made a special change to see the environmental variables, see the pasetbin; https://pastebin.com/4xcce26F (opencv-openvino)>> C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\bin\setupvars.bat C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\deployment_tools\open_model_zoo\tools\accuracy_checker;C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\python\python3.5;C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\python\python3;C:\Program Files (x86)\IntelSWTools\openvino_2020.3.194\deployment_tools\model_optimizer; 4 - Try to see if you can import IECore and IENetwork (opencv-openvino)>>python
5 - If above gives no error you are ok. BONUS: The "probably" easiest way Graphical Steps after the first step (created the virtual environment): 2 - Copy the openvino python version folder to the packages folder 2.1 - Check the location of the site-packages 2.2 - Copy the openvino folder to the site packages folder 4 & 5 - Try to see if you can import IECore and IENetwork; If gives no error you are ok BONUS: The "probably" easiest way: |
In order to avoid this problem you should |
Ignore all the comments given above and follow the following steps to resolve the issue on Windows 10 :
|
version information
|
more explain, i already changed all config path, and remove python 3.6.5 and openvino2020.x versions |
I changed setupvars to point to a copy of python3.6, and now it works fine. I think the problem is python3.8. |
Internally setupvars.sh edit two environment variable to include all openvino directory :
To avoid running setupvars.sh everytime, you can permanently edit edit the environment variable as follows : Copy the openvino python directory
Common Step
Setting up PYTHONPATH variable
Setting up PATH variable
That's it, now the Note : it may mess up your opencv setup, remove the opencv path from OPENVINO_PAT |
If you are using Python 3.8 or higher and installed openvino via pip on Windows then
or instead just add |
Closing, feel free to re-open or start a new issues if additional assistance is needed. Sincerely, |
* Add divided * Update arm_optimizations.cpp * Enable divide * Enable FP16 divide
I try to inference YOLOv3 by openvino, there is an ie "api.pyd" file in the interface_engine folder of python3.6 folder.
Any method shown in this thread,all done.
Please teach me the tip to solve the error.
OpenVINO 2020.1
OS:Windows10 Pro v1909 OS build 18363.418
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32
from modules.inference_engine import InferenceEngine
File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\open_model_zoo\demos\python_demos\human_pose_estimation_3d_demo\modules\inference_engine.py", line 19, in
from openvino.inference_engine import IENetwork, IECore
File "C:\Program Files (x86)\IntelSWTools\openvino\python\python3.6\openvino\inference_engine_init_.py", line 1, in
from .ie_api import *
ImportError: DLL load failed: The specified module could not be found
The text was updated successfully, but these errors were encountered: