Flet compiling error

147 views
Skip to first unread message

João Luis Valle

unread,
Oct 25, 2023, 3:56:24 AM10/25/23
to PyInstaller
I´m trying do create an 'exe' from a flet file witth it´s proprietary pyInstaller comand 
"flet pack my_file.py"
The following error occured:
File "C:\Users\55119\Dropbox\Python\curso-python\teste\flet\basico\executavel_airbnb\airbnb_scrap.spec", line 18, in <module>
    exe = EXE(
          ^^^^
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\PyInstaller\building\api.py", line 628, in __init__
    self.__postinit__()
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\PyInstaller\building\datastruct.py", line 184, in __postinit__
    self.assemble()
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\PyInstaller\building\api.py", line 737, in assemble
    self._retry_operation(winresource.remove_all_resources, build_name)
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\PyInstaller\building\api.py", line 995, in _retry_operation
    return func(*args)
           ^^^^^^^^^^^
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\PyInstaller\utils\win32\winresource.py", line 189, in remove_all_resources
    win32api.EndUpdateResource(module_handle, False)
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\win32ctypes\pywin32\win32api.py", line 225, in EndUpdateResource
5, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Users\55119\Dropbox\Python\curso-python\env\Lib\site-packages\win32ctypes\pywin32\pywintypes.py", line 37, in pywin32error
    raise error(exception.winerror, exception.function, exception.strerror)
win32ctypes.pywin32.pywintypes.error: (110, 'EndUpdateResource', 'O sistema não pode abrir o dispositivo ou arquivo especificado')
(env) PS C:\Users\55119\Dropbox\Python\curso-python\teste\flet\basico\executavel_airbnb> pip install win32
ERROR: Could not find a version that satisfies the requirement win32 (from versions: none)ERROR: No matching distribution found for win32

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


a = Analysis(
    ['airbnb_scrap.py'],
    pathex=[],
    binaries=[],
    datas=[],
    hiddenimports=[],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    noarchive=False,
)
pyz = PYZ(a.pure)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.datas,
    [],
    name='airbnb_scrap',
    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,
    version='C:\\Users\\55119\\AppData\\Local\\Temp\\04642c88-25fc-4c3a-92a1-c220c91fa1d7',
)

bwoodsend

unread,
Oct 25, 2023, 4:54:28 AM10/25/23
to PyInstaller
There's no point in asking us about flet if it's proprietary. We have no idea what's in it or what it's doing.
Reply all
Reply to author
Forward
0 new messages