Pyside6 and cx_freeze able to convert to executable file however unable to open

42 Views Asked by At

Version

  • PySide6: 6.6.1
  • shiboken6: 6.6.1
  • cx_Freeze: 6.15.14

My cx_freeze code:

import sys
from cx_Freeze import setup, Executable


files = ["music.mp3", "logo.png", "main.ui", "myfolder"]

build_exe_options = {
    "packages": ["os"],
    "include_files":files
}

# base="Win32GUI"
base = "Win32GUI" if sys.platform == "win32" else None

setup(
    name="my app",
    version="1.0",
    description="my app",
    options={"build_exe": build_exe_options},
    executables=[Executable("main.py", base=base)],
)

I follow according to the documentation provided (https://doc.qt.io/qtforpython-6/deployment/deployment-cxfreeze.html). I keep facing this error: Error Image

i try copy change it to file by adding a the dll file

files = ["music.mp3", "logo.png", "main.ui", "myfolder" ,"..\myenv\Lib\site-packages\shiboken6\shiboken6.abi3.dll"]

But i still keep getting the same error any idea of how to fix this or is there another way i could freeze my pyside6 file with all the require folder

0

There are 0 best solutions below