Identify Missing DLLs in Python on Windows

Viewed 362

If you try to import a pyd file in Python on Windows and you're missing some DLLs it depends on you'll get an error:

ImportError: DLL load failed: The specified module could not be found

Is there a way to show the name of the file you were trying to load and, more critically, the names of the missing DLLs?

I do not develop regularly on Windows, but I distribute a Windows version of a library I maintain and the lack of clarity around this error makes troubleshooting difficult, but I'm not sure how to get more information. I have found how to list the DLLs an extension requires, but I'd like to be able to do that in-place in my module to diagnose issues with user systems.

0 Answers
Related