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. Strange delay for starting pyside6-deploy packaged app
Forum Updated to NodeBB v4.3 + New Features

Strange delay for starting pyside6-deploy packaged app

Scheduled Pinned Locked Moved Unsolved Qt for Python
4 Posts 4 Posters 635 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.
  • A Offline
    A Offline
    Antonio C
    wrote on last edited by
    #1

    Hello,

    I have made a simple test creating a package of a very simple hello world QtWidgets scripts using the new pyside6-deploy script (https://doc.qt.io/qtforpython-6/deployment/deployment-pyside6-deploy.html).
    The binary produced (for macOS) is quite small 19Mb, but it takes almost 5 seconds! for the screen to appear. If I run it the same script with the python interpreter, it would be instantaneous.

    What am I doing wrong? I didn't use any flag, but just pyside6-deploy /path/to/main_file.py as in the instructions.

    thx

    J JonBJ CristianMaureiraC 3 Replies Last reply
    0
    • A Antonio C

      Hello,

      I have made a simple test creating a package of a very simple hello world QtWidgets scripts using the new pyside6-deploy script (https://doc.qt.io/qtforpython-6/deployment/deployment-pyside6-deploy.html).
      The binary produced (for macOS) is quite small 19Mb, but it takes almost 5 seconds! for the screen to appear. If I run it the same script with the python interpreter, it would be instantaneous.

      What am I doing wrong? I didn't use any flag, but just pyside6-deploy /path/to/main_file.py as in the instructions.

      thx

      J Offline
      J Offline
      jaydub
      wrote on last edited by
      #2

      @Antonio-C sorry, I don't know the answer to your question ... I have a more fundamental question.

      Where do I find pyside6-deploy?

      I have found very little on the web about this utility.

      1 Reply Last reply
      0
      • A Antonio C

        Hello,

        I have made a simple test creating a package of a very simple hello world QtWidgets scripts using the new pyside6-deploy script (https://doc.qt.io/qtforpython-6/deployment/deployment-pyside6-deploy.html).
        The binary produced (for macOS) is quite small 19Mb, but it takes almost 5 seconds! for the screen to appear. If I run it the same script with the python interpreter, it would be instantaneous.

        What am I doing wrong? I didn't use any flag, but just pyside6-deploy /path/to/main_file.py as in the instructions.

        thx

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #3

        @Antonio-C
        I do not use MacOS, but Linux has strace, does Mac offer this? If so you should be able to run:

        strace python3 your.py
        # or if it has produced a binary maybe you don't run `python3` and it's just:
        strace your.py
        

        That would produce output for every system call it makes, file it opens etc. You would look through that to get clue what it's up to, especially if there is a "pause" in the output, e.g. accessing a file on the Internet or something. man strace will give you lots of options to reduce and target the output. Worth a try if MacOS offers it.

        1 Reply Last reply
        0
        • A Antonio C

          Hello,

          I have made a simple test creating a package of a very simple hello world QtWidgets scripts using the new pyside6-deploy script (https://doc.qt.io/qtforpython-6/deployment/deployment-pyside6-deploy.html).
          The binary produced (for macOS) is quite small 19Mb, but it takes almost 5 seconds! for the screen to appear. If I run it the same script with the python interpreter, it would be instantaneous.

          What am I doing wrong? I didn't use any flag, but just pyside6-deploy /path/to/main_file.py as in the instructions.

          thx

          CristianMaureiraC Offline
          CristianMaureiraC Offline
          CristianMaureira
          wrote on last edited by
          #4

          @Antonio-C compared to a normal PySide application, how long does that take?
          pyside6-deploy uses Nuitka under the hood. It really compiles the Python code, creating C-based python extensions, so there might be some heavy lifting to make sure all the Qt dependencies are in place. Do you see a similar approach in other compiled apps? I haven't experience this at least on Linux.

          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