Problem solved with the new pyinstaller 5.1 version :)

note :
I deleted too " hiddenimports=['wx', 'reportlab', 'matplotlib', 
'xlsxwriter', 'openpyxl'] " which was not necessary...

Le dimanche 8 mai 2022 à 21:42:57 UTC+2, Regis CARLES a écrit :

> Hi all,
>
> I use Ubuntu 22.04, pyinstaller 5.0.1, python 3.10 and wxPython 4.1.2a1.
>
> My software runs well.
>
> But I can't build the distribution package, even if I use "hidden-import". 
> I don't have any building error, but the various libraries are not 
> generated at all.
>
> This is my spec file :
>
> # -*- mode: python ; coding: utf-8 -*-
>
>
> block_cipher = None
>
>
> a = Analysis(
>     ['myprogram.py'],
>     pathex=[],
>     binaries=[],
>     datas=[],
>     hiddenimports=['wx', 'reportlab', 'matplotlib', 'xlsxwriter', 'openpyxl'],
>     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,
>     [],
>     exclude_binaries=True,
>     name='myprogram',
>     debug=False,
>     bootloader_ignore_signals=False,
>     strip=False,
>     upx=True,
>     console=False,
>     disable_windowed_traceback=False,
>     argv_emulation=False,
>     target_arch=None,
>     codesign_identity=None,
>     entitlements_file=None,
> )
> coll = COLLECT(
>     exe,
>     a.binaries,
>     a.zipfiles,
>     a.datas,
>     strip=False,
>     upx=True,
>     upx_exclude=[],
>     name='myprogram',
> )
>
> Is there any incompatibility with the various programs I use ?
>
> Thanks for reading, any help is welcome :)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/a45d13ec-1c8f-47fd-a691-d8e28296fa47n%40googlegroups.com.

Reply via email to