microsoft / ELL

Embedded Learning Library
https://microsoft.github.io/ELL
Other
2.29k stars 294 forks source link

import _model Import error:DLL load failed #248

Open MSD077 opened 4 years ago

MSD077 commented 4 years ago

Hello, when executing the call_model.py script, I get the following error

(py36) D:\PROJECTS\Practice Model\host>python call_model.py Traceback (most recent call last): File "call_model.py", line 19, in import model File "D:\PROJECTS\Practice Model\host\model.py", line 11, in import _model ImportError: DLL load failed: The specified module could not be found.

It will be much helpful if someone could guide me on this. Also what is the correct directory for the call_model.py script? Should it be inside the host/build folder?

Thanks!

lovettchris commented 3 years ago

you just need move call_model.py up one level in your folder hierarchy. call_model.py and tutorial_helpers.py should live in the same folder that contains "host". You can see what this is when you look at tutorial_helpers.py which is setting up a module search path for the "host" folder.

lovettchris commented 3 years ago

Another possibility is missing open_blas DLL dependency. See: Path Environment in ELL/INSTALL-Windows.md at master · microsoft/ELL (github.com)https://github.com/microsoft/ELL/blob/master/INSTALL-Windows.md#path-environment

From: Anatolii Klots notifications@github.com Sent: Wednesday, December 2, 2020 2:14 PM To: microsoft/ELL ELL@noreply.github.com Cc: Chris Lovett clovett@microsoft.com; Comment comment@noreply.github.com Subject: Re: [microsoft/ELL] import _model Import error:DLL load failed (#248)

Hi guys, I've tried all possible location for call_model.py but the error is still the same:

Traceback (most recent call last):

File "c:/Users/.../Sources/Python/object-tracking/ell/call_model.py", line 19, in

import model

File "c:\Users...\Sources\Python\object-tracking\ell\host\model.py", line 11, in

import _model

ImportError: DLL load failed while importing _model: The specified module could not be found.

Looks like it's unable to load one of the binaries: _model.pyd or _model.lib. I'm running on Python 3.8 & Windows 10 x64.

Would appreciate any help. Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FELL%2Fissues%2F248%23issuecomment-737527720&data=04%7C01%7Cclovett%40microsoft.com%7Ce6cd8ca5de7d40f60eed08d8970f8eb0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C637425440366097820%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LMpz5ApZklGbrsOQkZ0x7aCQYpRTl%2FUoLmjQ%2BiPzvw8%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEOXFKS2PQ3GIZMD6NWZC5DSS232FANCNFSM4NQ53A7A&data=04%7C01%7Cclovett%40microsoft.com%7Ce6cd8ca5de7d40f60eed08d8970f8eb0%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C637425440366107812%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=6PWAABa3jGX5uEjPGlzu%2B90%2BHJK6FKSLwa%2B%2BKKRNWsE%3D&reserved=0.