Software Versions
Project Title
Barcode-Image-Decode-Python-Kivy
Describe the bug
The error message is :
Traceback (most
recent call last):
File
"PyInstaller\loader\pyimod04_ctypes.py", line 54, in init
File "ctypes_init_.py", line 374, in init
OSError: [WinError 193]
%1 is not a valid Win32 application
File
"PyInstaller\loader\pyimod04_ctypes.py", line 56, in init
pyimod04_ctypes.PyInstallerImportError:
Failed to load dynlib/dll 'libiconv.dll'. Most probably this dynlib/dll was not
found when the application was frozen.
During handling of the
above exception, another exception occurred:
Traceback (most
recent call last):
File
"PyInstaller\loader\pyimod04_ctypes.py", line 54, in init
File "ctypes_init_.py", line 374, in init
FileNotFoundError: Could
not find module 'C:\Users\hp\AppData\Local\Temp_MEI189762\pyzbar\libiconv.dll'
(or one of its dependencies). Try using the full path with constructor syntax.
The above exception was
the direct cause of the following exception:
File
"PyInstaller\loader\pyimod04_ctypes.py", line 56, in init
pyimod04_ctypes.PyInstallerImportError:
Failed to load dynlib/dll
'C:\Users\hp\AppData\Local\Temp\_MEI189762\pyzbar\libiconv.dll'. Most probably
this dynlib/dll was not found when the application was frozen.
[3168] Failed to
execute script 'main' due to unhandled exception!
Expected behavior
Help to solve this error.
Please provide guidence and solution.
Got this error on my pyzbar program after I converted to exe with pyinstaller.
I build the exe application file but at the run time its give me error message.
This error show me when i run the exe application file on windows 10 Operating
System.
It looks like you are missing part of your spec file. There is no COLLECT section.
Here is a specfile I use for my Windows projects:
# -*- mode: python -*-
import os
from kivy_deps import sdl2, glew
spec_root = os.path.abspath(SPECPATH)
block_cipher = None
app_name = 'your app name'
win_icon = '../Images/your windows icon.ico'
a = Analysis(['../main.py'],
pathex=[spec_root],
binaries=[],
datas=[('../*.kv', '.'),
('../Images/*.png', './Images')],
hiddenimports=['win32timezone'],
hookspath=[],
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=app_name,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
icon=win_icon)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=False,
name=app_name)
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b816a224-35e2-4b69-bb7b-e0684ad8a6d2n%40googlegroups.com.