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. After using cx_Freeze - App can not be launched

After using cx_Freeze - App can not be launched

Scheduled Pinned Locked Moved Unsolved Qt for Python
9 Posts 5 Posters 2.2k Views 2 Watching
  • 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.
  • W Offline
    W Offline
    Witc
    wrote on last edited by
    #1

    Hi,

    I have app made from python and QML/QtQuick. I used cx_Freeze to have a an executable file. Then I can run my app.exe on my PC, but on another (almost clean win 10 installation) it show this kind of error:
    Please any advice how to fix that?
    Thank you very much.
    af397a4c-a4c5-45c5-a6b3-a71a2f972215-cx_freeze_error.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      I would say that not all required dependencies have been deployed. You might want to test other tools like Nuitka.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      W 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        I would say that not all required dependencies have been deployed. You might want to test other tools like Nuitka.

        W Offline
        W Offline
        Witc
        wrote on last edited by
        #3

        @SGaist said in After using cx_Freeze - App can not be launched:

        Nuitka

        Ok I will try, and do you have any idea what dependenices could missing? Then I woul install it manually...

        JonBJ 1 Reply Last reply
        0
        • W Witc

          @SGaist said in After using cx_Freeze - App can not be launched:

          Nuitka

          Ok I will try, and do you have any idea what dependenices could missing? Then I woul install it manually...

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

          @Witc
          The "Shiboken" mentioned in the error message is the "glue" code which makes PySide6/Python work with Qt. Somehow I think the cx_freeze is not picking up all of its files/dependencies. That's all I know, I don't know exactly which bits of it cannot be found.

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Witc
            wrote on last edited by
            #5

            I tried Nuitka: like standalone, and onefile, but when I want to launch final exe, the new error appears, any idea please?
            err.png

            1 Reply Last reply
            0
            • Fire CubeF Offline
              Fire CubeF Offline
              Fire Cube
              wrote on last edited by
              #6

              Please share the used command with us.

              W 1 Reply Last reply
              0
              • Fire CubeF Fire Cube

                Please share the used command with us.

                W Offline
                W Offline
                Witc
                wrote on last edited by
                #7

                @Fire-Cube I tried:
                nuitka main.py --onefile
                nuitka main.py --standalone

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  Witc
                  wrote on last edited by Witc
                  #8

                  Just found a solution:

                  I had to install Visual Build Tool : see picture:
                  Then I can run my exe version of application builded by cx_Freeze. Would be nice if cx_Freeze could do it itself...

                  install.png

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    Shyamnath
                    wrote on last edited by
                    #9

                    With 6.4 we have a new tool called 'pyside6-deploy', for deployment purposes. The tool is basically a wrapper around Nuitka for PySide6 deployment.

                    The documentation isn't published yet, but here is how you use it https://codereview.qt-project.org/c/pyside/pyside-setup/+/450121/11/sources/pyside6/doc/deployment/deployment-pyside6-deploy.rst

                    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