Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Issue with PyInstaller Executable Not Finding Internal DLL
Servers for Qt installer are currently down

Issue with PyInstaller Executable Not Finding Internal DLL

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 1 Posters 916 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    OscarIBIDev
    wrote on 24 Dec 2024, 07:53 last edited by
    #1

    Hello,

    I'm using PyInstaller to create an executable for my program. The build process completes successfully, but when I try to run the resulting .exe file, I encounter an error indicating that a specific DLL file cannot be found.

    The DLL is located in the internal directory, and I’ve verified that it’s present there. However, for some reason, the executable fails to locate it.

    I’ve tried specifying the path to the DLL in the PyInstaller spec file and double-checked that the directory structure is correct, but the issue persists.

    What could be causing this, and how can I ensure the DLL is properly detected and used by the executable?

    Any advice or troubleshooting steps would be greatly appreciated!

    Thank you!
    this is the line that get the error:
    from PyQt5 import QtWidgets, QtGui

    Full Error:
    Traceback (most recent call last): File "main.py", line 9, in <module> ImportError: DLL load failed while importing QtWidgets: The specified module could not be found.

    1 Reply Last reply
    0
    • O Offline
      O Offline
      OscarIBIDev
      wrote on 24 Dec 2024, 09:32 last edited by
      #2

      The issue was that I had python311.dll but didn't have python3.dll. Adding the python3.dll file resolved the problem.

      1 Reply Last reply
      0

      1/2

      24 Dec 2024, 07:53

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved