When Python fails to load a dependency of a C extension module, it shows a cryptic error message that doesn't really help you solve the issue.
>>> import mymodule
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing mymodule: The specified module could not be found.
mymodule.pyd is there, but it has a dependency on something else that is not visible to the Python executable. How can I figure out exactly what dependency is failing?
Note that I'm not looking for help on specific packages, but for a generic way to solve this issue.
Edit: Turns out python is just relaying whatever error message it gets from Windows when trying to load the dll, so I guess this is more a Windows cryptic message than Python's.