Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. PySide6 - windeployqt: " *.exe does not seem to be a Qt executable "
Forum Updated to NodeBB v4.3 + New Features

PySide6 - windeployqt: " *.exe does not seem to be a Qt executable "

Scheduled Pinned Locked Moved Solved Installation and Deployment
7 Posts 3 Posters 2.6k 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.
  • V Offline
    V Offline
    valvador92
    wrote on last edited by
    #1

    Hi!
    I read that PySide6 and pyinstaller are not compatible yet. Therefore, I am trying to use windeployqt as suggested here to create my bundle in order to find the dependencies for the executable.

    What I did:

    pyinstaller -w abc.spec abc.py
    

    and then, as suggested here:

    D:\myQT\6.2.1\msvc2019_64>windeployqt.exe "abc.exe"
    

    and I got this error:

    abc.exe 64 bit, debug executable
    abc.exe does not seem to be a Qt executable.
    

    What should I do?

    jsulmJ 1 Reply Last reply
    0
    • V valvador92

      Thanks for the suggestion.
      I've just done it. Here are the dlls inside the PySide6/plugins/platforms folder. The UI still doesn't look correct.
      8ba73aaf-3727-4433-a5c4-2e800d13a94f-image.png

      eyllanescE Offline
      eyllanescE Offline
      eyllanesc
      wrote on last edited by
      #6

      @valvador92 You have to copy the plugin styles.

      If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

      1 Reply Last reply
      2
      • V valvador92

        Hi!
        I read that PySide6 and pyinstaller are not compatible yet. Therefore, I am trying to use windeployqt as suggested here to create my bundle in order to find the dependencies for the executable.

        What I did:

        pyinstaller -w abc.spec abc.py
        

        and then, as suggested here:

        D:\myQT\6.2.1\msvc2019_64>windeployqt.exe "abc.exe"
        

        and I got this error:

        abc.exe 64 bit, debug executable
        abc.exe does not seem to be a Qt executable.
        

        What should I do?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @valvador92 said in PySide6 - windeployqt: " *.exe does not seem to be a Qt executable ":

        What should I do?

        You should do what was suggested in the first link you posted: "On Windows, this can be achieved by running the windeployqt tool from the Qt SDK on the Qt libraries present in the dist directory, for example:
        windeployqt dist\app\Qt6Widgets.dll
        "
        You are calling windeployqt on your exe instead, which is wrong (this will only work with exe generated from C++ project).

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • V Offline
          V Offline
          valvador92
          wrote on last edited by
          #3

          Hi!

          Thanks for the answer. I did it for those ones.
          8d9619d0-787a-498a-b02a-6943e39e3dda-image.png

          I got this error for Qt6Core.dll

          C:\Users\user\Documents\SB5>"D:\Programm\myQT\6.2.1\msvc2019_64\bin\windeployqt.exe" dist\SmartBlur\Qt6Core.dll
          C:\Users\user\Documents\SB5\dist\SmartBlur\Qt6Core.dll 64 bit, release executable
          

          However, my executable is now working but the UI does not look correct:
          c814987b-8cb6-4345-9c99-c149d2b9a0de-image.png

          It should be:
          1ed10d8b-faa8-4a6e-87ae-29369187a1a0-image.png

          To make the UI look correct I had to add the entire plugins folder from PySide6.
          Is there a smarter way to only add what is needed inside this plugins folder in order to optimize the size?

          jsulmJ 1 Reply Last reply
          0
          • V valvador92

            Hi!

            Thanks for the answer. I did it for those ones.
            8d9619d0-787a-498a-b02a-6943e39e3dda-image.png

            I got this error for Qt6Core.dll

            C:\Users\user\Documents\SB5>"D:\Programm\myQT\6.2.1\msvc2019_64\bin\windeployqt.exe" dist\SmartBlur\Qt6Core.dll
            C:\Users\user\Documents\SB5\dist\SmartBlur\Qt6Core.dll 64 bit, release executable
            

            However, my executable is now working but the UI does not look correct:
            c814987b-8cb6-4345-9c99-c149d2b9a0de-image.png

            It should be:
            1ed10d8b-faa8-4a6e-87ae-29369187a1a0-image.png

            To make the UI look correct I had to add the entire plugins folder from PySide6.
            Is there a smarter way to only add what is needed inside this plugins folder in order to optimize the size?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #4

            @valvador92 said in PySide6 - windeployqt: " *.exe does not seem to be a Qt executable ":

            To make the UI look correct I had to add the entire plugins folder from PySide6.

            What was missing was the platform plug-in, just add those

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • V Offline
              V Offline
              valvador92
              wrote on last edited by valvador92
              #5

              Thanks for the suggestion.
              I've just done it. Here are the dlls inside the PySide6/plugins/platforms folder. The UI still doesn't look correct.
              8ba73aaf-3727-4433-a5c4-2e800d13a94f-image.png

              eyllanescE 1 Reply Last reply
              0
              • V valvador92

                Thanks for the suggestion.
                I've just done it. Here are the dlls inside the PySide6/plugins/platforms folder. The UI still doesn't look correct.
                8ba73aaf-3727-4433-a5c4-2e800d13a94f-image.png

                eyllanescE Offline
                eyllanescE Offline
                eyllanesc
                wrote on last edited by
                #6

                @valvador92 You have to copy the plugin styles.

                If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

                1 Reply Last reply
                2
                • V Offline
                  V Offline
                  valvador92
                  wrote on last edited by
                  #7

                  Thanks a lot both of you :) It worked! I can now continue on my project. The blocking point was the creation of the executable. I hope that the creation of the installer with Wix toolset will work as well!

                  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