Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2622

pyside6-deploy - FileNotFoundError for any external files the project uses.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.7.2, 6.8.0, 6.7.3
    • 6.6.2
    • Tooling
    • None
    • Windows
    • 32e353e9d (dev), 8212be3b9 (6.7), 2d31f7bec (dev), 701d6d50c (6.7)

    Description

      pyside6-deploy enforces the --one-file option on nuitka and this makes produced executable unpack it's files in a temp directory every run, preventing it from being able to work with external files in the project.

      The only solution is to manually try to get the executable path and add it to every file path i implemented in my project, which is not ideal, I have hundreds of local file calls, and I have resources i cannot just serialize in a qrc file and use it, I need them separate unserialized, like other executable that I interface from python, they need to be in the state they are in.

      Also using the --one-file option causes extra disk read/write every time the program is executed, which is not the most efficient solution to be set as default.

      I tried to remove the --one-file option from the nuitka_helper.py in the deploy_utils and add the --standalone option but that didn't help, it just made the script produce nothing.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shpremna Shyamnath Premnadh
            ahmedahmedeg Ahmed Ahmed Abd Al Maksoud
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes