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. import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.
Forum Updated to NodeBB v4.3 + New Features

import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.

Scheduled Pinned Locked Moved Unsolved Qt for Python
8 Posts 4 Posters 3.1k 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.
  • D Offline
    D Offline
    Diptanshu Malviya
    wrote on last edited by Diptanshu Malviya
    #1

    How to Resolve this Issue :
    Just installed the pyqt6 faced this problem and i am working on the Pycharm

    Issue:
    import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.

    JonBJ 1 Reply Last reply
    0
    • D Diptanshu Malviya

      How to Resolve this Issue :
      Just installed the pyqt6 faced this problem and i am working on the Pycharm

      Issue:
      import PyQt6.QtWidgets ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Diptanshu-Malviya
      How did you install, and does this occur outside of PyCharm?

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @Diptanshu-Malviya
        How did you install, and does this occur outside of PyCharm?

        D Offline
        D Offline
        Diptanshu Malviya
        wrote on last edited by
        #3

        @JonB yes , i had installed in the terminal . I think it is problem in the version, because i move to pyqt5 it working perfectly . I don't know , but in future it will again show the same error when i reinstall the pyqt6.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          friedemannkleint
          wrote on last edited by
          #4

          What Windows version is this - note Qt 6 supports only Windows 10 onwards.

          D 1 Reply Last reply
          1
          • F friedemannkleint

            What Windows version is this - note Qt 6 supports only Windows 10 onwards.

            D Offline
            D Offline
            Diptanshu Malviya
            wrote on last edited by
            #5

            @friedemannkleint I am using window 11

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Pero
              wrote on last edited by
              #6

              I am having the same problem both with Windows installer from python.org and with mingw-w64 instalation of python. Whatever I try to import from PySide6 I am getting "DLL load failed while importing QtGui: The specified procedure could not be found."
              I am using Windows 10, python.org python is version 3.13.7, mingw-w64 version of python is 3.12.9, version of PySide6 in python.org is 6.9.2, in mingw-w64 version is 6.8.2
              In python.org version of python "missing" dlls are in C:\ProgramData\Python3\Lib\site-packages\PyQt6\Qt6\bin (in my installation). I put that directory in System %Path% variable bat that did not help either.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Pero
                wrote on last edited by
                #7

                Tried also adding path C:\ProgramData\Python3\Lib\site-packages\PyQt6\Qt6\bin by:

                os.add_dll_directory(r'C:\ProgramData\Python3\Lib\site-packages\PyQt6\Qt6\bin')

                command succeeded but importing ( from PySide6.QtGui import QImage ) still gave me the same error.

                1 Reply Last reply
                0
                • F Offline
                  F Offline
                  friedemannkleint
                  wrote on last edited by
                  #8

                  You have a mix of PySide6 and PyQt6 here, what are you using, really?

                  1 Reply Last reply
                  1

                  • Login

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