0x8007007E 🪟 Windows

0x8007007E: The specified module could not be found

A DLL that a program, driver or COM component needs isn’t on disk or on the DLL search path.

Seen on: Windows

Meaning

ERROR_MOD_NOT_FOUND appears when loading native modules (Python/Node extensions, ODBC drivers, Outlook add-ins), during updates, or with Excel/Office COM add-ins. The missing DLL is often a dependency of the DLL you named.

Common causes

  • Dependency DLL missing (VC++ runtime, native library)
  • 32/64-bit mismatch
  • PATH doesn’t contain the DLL’s folder
  • Corrupt installation

⚡ Quick fix

  1. Find missing dependencies with Dependencies (lucasg) or dumpbin /dependents
  2. Install the right runtime/architecture
  3. Add the folder to PATH or use os.add_dll_directory (Python)

Detailed fix by platform

Python

  1. python
    import os
    os.add_dll_directory(r"C:\\Program Files\\MyLib\\bin")
    import mylib

How to diagnose

  1. Dependencies — Which DLL is missing?
  2. Bitness — 32 vs 64-bit
  3. PATH — Includes the folder?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.