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. PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.

PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 3 Posters 2.5k 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.
  • M Offline
    M Offline
    martinbrader
    wrote on last edited by
    #1

    When using a version of PySide6 greater than v6.2.4 I am getting this error message
    "qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though
    it was found.
    This application failed to start because no Qt platform plugin could be initiali
    zed. Reinstalling the application may fix this problem.
    Available platform plugins are: direct2d, minimal, offscreen, windows."

    I am using Python 3.10 and PyInstaller v5.6.2.
    My app runs ok on development machine (W10) and on local network in W11, but when copied to remote server it fails with the above message.

    As long as I use PySide6 v 6.2.4 everything works ok.

    If I try using Python 3.11 PySide6 refuses to load anything less than PySide6 v 6.4.0.1 and once again I experience same error.

    JonBJ 1 Reply Last reply
    0
    • M Offline
      M Offline
      martinbrader
      wrote on last edited by
      #7

      @friedemannkleint said in PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.:

      Windows 2012 Server R2 is based on Windows 8.1; this is not supported by Qt 6. We also recommend nuitka or the newly created pyside6-deploy for deployment (see https://www.qt.io/blog/qt-for-python-release-6.4-is-finally-here ) since PyInstaller does not really support PySide6.

      Thank you, tha's helpful info

      1 Reply Last reply
      0
      • M martinbrader

        When using a version of PySide6 greater than v6.2.4 I am getting this error message
        "qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though
        it was found.
        This application failed to start because no Qt platform plugin could be initiali
        zed. Reinstalling the application may fix this problem.
        Available platform plugins are: direct2d, minimal, offscreen, windows."

        I am using Python 3.10 and PyInstaller v5.6.2.
        My app runs ok on development machine (W10) and on local network in W11, but when copied to remote server it fails with the above message.

        As long as I use PySide6 v 6.2.4 everything works ok.

        If I try using Python 3.11 PySide6 refuses to load anything less than PySide6 v 6.4.0.1 and once again I experience same error.

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

        @martinbrader
        Hello and welcome.

        There are many posts like this. You need to start with set QT_DEBUG_PLUGINS=1 environment variable and then run your Python script. Look through the diagnostic output till you see what error it reports as the reason.

        M 1 Reply Last reply
        0
        • JonBJ JonB

          @martinbrader
          Hello and welcome.

          There are many posts like this. You need to start with set QT_DEBUG_PLUGINS=1 environment variable and then run your Python script. Look through the diagnostic output till you see what error it reports as the reason.

          M Offline
          M Offline
          martinbrader
          wrote on last edited by
          #3

          @JonB thanks Jon, tried that, the output didn't help.
          I've tried pretty much everything else suggested in various other posts.

          JonBJ 1 Reply Last reply
          0
          • M martinbrader

            @JonB thanks Jon, tried that, the output didn't help.
            I've tried pretty much everything else suggested in various other posts.

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

            @martinbrader said in PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.:

            the output didn't help.

            Well that's a shame, but only you know what it had to say.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              martinbrader
              wrote on last edited by
              #5

              Tried again after upgrading to PySide6-Essentials==6.4.1 and pyinstaller==5.7.0
              Everything runs ok on Windows 10 Desktop.
              But when I transfer to Windows 2012 Server R2
              Now getting different error message:
              "ImportError: DLL load failed while importing QtGui: The specified procedure could not be found."

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

                Windows 2012 Server R2 is based on Windows 8.1; this is not supported by Qt 6. We also recommend nuitka or the newly created pyside6-deploy for deployment (see https://www.qt.io/blog/qt-for-python-release-6.4-is-finally-here ) since PyInstaller does not really support PySide6.

                1 Reply Last reply
                2
                • M Offline
                  M Offline
                  martinbrader
                  wrote on last edited by
                  #7

                  @friedemannkleint said in PySide6 v6.3+ qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found.:

                  Windows 2012 Server R2 is based on Windows 8.1; this is not supported by Qt 6. We also recommend nuitka or the newly created pyside6-deploy for deployment (see https://www.qt.io/blog/qt-for-python-release-6.4-is-finally-here ) since PyInstaller does not really support PySide6.

                  Thank you, tha's helpful info

                  1 Reply Last reply
                  0

                  • Login

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