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: Unresolved
    • Not Evaluated
    • None
    • 6.6.2
    • Tooling
    • None
    • Windows

    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:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes