Python Program Error: Missing Specific DLL Files

호균 김 0 Reputation points
2024-10-01T13:41:42.9933333+00:00

Hi everyone,

I'm a beginner Python programmer and I'm currently facing an issue with a program I've been working on. While the program runs perfectly fine in Visual Studio Code, it encounters an error when executed as an executable file. Specifically, a particular function is not working as expected.

After investigating, I found that the program is unable to locate three specific DLL files that are dependencies of pdfium.dll:

  • ext-ms-win-oobe-query-l1-1-0.dll
  • ext-ms-win32-subsystem-query-l1-1-0.dll
  • ext-ms-win-gdi-edgegdi-l1-1-0.dll

I suspect that these missing DLLs are causing the issue.

I've already tried the following solutions:

  1. System File Checker: Ran sfc /scannow as administrator.
  2. Windows Updates: Installed the latest Windows updates.
  3. DISM: Attempted to repair the system image using DISM, but it got stuck at 62.3%.
  4. Visual C++ Redistributable: Installed the latest 32-bit and 64-bit versions.

Unfortunately, none of these solutions have resolved the problem. I've also tried specifying the paths to the DLL files using tools like PyInstaller, but it hasn't made any difference.

I'm using Windows 11, Python 3.12, and a 64-bit version of pdfium downloaded from Git.

I would appreciate any help or suggestions on how to resolve this issue.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,479 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.