Python Program Error: Missing Specific DLL Files
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:
- System File Checker: Ran
sfc /scannow
as administrator. - Windows Updates: Installed the latest Windows updates.
- DISM: Attempted to repair the system image using DISM, but it got stuck at 62.3%.
- 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.