r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.77k stars 555 forks source link

frozen pyinstaller standalone debug=True fails #1072

Closed martinlombana closed 1 year ago

martinlombana commented 1 year ago

Specification

Description

image

GGTEC commented 1 year ago

Were you able to solve the problem? I'm with exactly the same problem now

martinlombana commented 1 year ago

Yes, I don't remember how, though but here is my pip freeze, in case that helps:

(you would not need all my packages though)

altgraph==0.17.3
atpublic==3.1.1
bidict==0.22.1 
bottle==0.12.25
Brotli==1.0.9
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.1.0
clr-loader==0.2.5
colorama==0.4.6
cssselect2==0.7.0
Cython==0.29.33
dataclass-wizard==0.22.2
duckdb==0.7.1
duckdb-engine==0.7.0
fonttools==4.39.0
greenlet==2.0.2
html5lib==1.1
idna==3.4
markdown-it-py==2.2.0
mdurl==0.1.2
mpire==2.6.0
multipledispatch==0.6.0
numpy==1.24.2
packaging==23.0
pandas==1.5.3
pandas-ta==0.3.14b0
parsy==2.1
pefile==2023.2.7
Pillow==9.4.0
platformdirs==3.1.1
pooch==1.7.0
proxy-tools==0.1.0
tinycss2==1.2.1
toolz==0.12.0
tqdm==4.65.0
typing_extensions==4.5.0
urllib3==1.26.15
webencodings==0.5.1
xxhash==3.2.0
zopfli==0.2.2

And this is my spec file:

# -*- mode: python ; coding: utf-8 -*-
block_cipher = None

a = Analysis(['app.py'],
             pathex=['C:\\GGG\\__builds'],
             binaries=[],
             datas=[],
             hiddenimports=[],
             hookspath=[],
             runtime_hooks=[],
             excludes=[],
             win_no_prefer_redirects=False,
             win_private_assemblies=False,
             cipher=block_cipher,
             noarchive=False)

a.datas += Tree('.\\assets', prefix='assets')
a.datas += Tree('.\\templates', prefix='templates')

pyz = PYZ(a.pure, a.zipped_data,
             cipher=block_cipher)

# Single EXE, receives everything
exe = EXE(pyz,
          a.scripts,
          a.binaries,
          a.zipfiles,
          a.datas,
          [],
          name='GGG',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          upx_exclude=[],
          runtime_tmpdir=None,
          console=False,
          icon='assets/ggg.ico',
          )

workpath = 'C:\\GGG\\__builds\\__bulk'
martinlombana commented 1 year ago

(I just updated pip freeze, as I sent the wrong one before)

r0x0r commented 1 year ago

This commit in master https://github.com/r0x0r/pywebview/commit/8a898d385b81804b8a005da8a8522db610c9db3a should address this issue. Could you test if this is the case?

GGTEC commented 1 year ago

Resolved with commit ! thanks