0

I've got a PyQt5 app that I am building on MSWin10. I am trying to build a single exe for the entire application.

The folder version of the application runs properly, but the bundled version complains about

Failed to execute script 'zipRenamer' due to unhandled exception: [Errno 2] No such file or directory: 'zipRenamerMainWindow.ui'

I have specified that file (and others) in my spec file. So I don't know why it's not including them in the bundled exe file.

# -*- mode: python ; coding: utf-8 -*-


block_cipher = None


a = Analysis(
    ['zipRenamer.pyw'],
    pathex=[],
    binaries=[],
    datas=[("./zipRenamerMainWindow.ui", "."),
            ("./preferencesDialog.ui", "."),
            ("./rootSelectDialog.ui", "."),
            ("./helpDialog.ui", "."),
            ("./helpDialog.html", "."),
            ("./images", "images"),
            ],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    [],
    name='zipRenamer',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    argv_emulation=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
    icon='images/zipRenamer.ico',
)
coll = COLLECT(
    exe,
    a.datas,
    a.binaries,
    a.zipfiles,
    strip=False,
    upx=True,
    upx_exclude=[],
    name='zipRenamer',
)
Arana
  • 177
  • 1
  • 12

0 Answers0