[Python] Discover missing module using command-line ("DLL load failed" error)

Discussão em 'Python' iniciado por Stack, Fevereiro 25, 2025.

  1. Stack

    Stack Membro Participativo

    On Windows, when we try to import a .pyd file, and a DLL that the .pyd depends on cannot be found, we get this traceback:

    Traceback (most recent call last):
    ...
    ImportError: DLL load failed: The specified module could not be found.


    When this happens, often one has to resort to a graphical tool like Dependencies to figure out what is the name of the missing module.

    How can I obtain the missing module name via the command-line?

    Context: often we get this error in CI, and it would be easier to login via SSH to find out the missing module name, rather than having to log via GUI.

    Continue reading...

Compartilhe esta Página