Aug-16-2018, 09:58 AM
hi. I have written a code to create a GUI to print barcodes. but when I try compiling it on the command prompt using pyinstaller I get this error. please help
Error:28433 INFO: Including run-time hook 'pyi_rth_win32comgenpy.py'
28436 INFO: Including run-time hook 'pyi_rth_qt5.py'
28440 INFO: Including run-time hook 'pyi_rth__tkinter.py'
28454 INFO: Looking for dynamic libraries
Traceback (most recent call last):
File "c:\users\sabee\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\sabee\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\sabee\Anaconda3\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 94, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 791, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 737, in build
exec(text, spec_namespace)
File "<string>", line 16, in <module>
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 213, in __init__
self.__postinit__()
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\building\datastruct.py", line 161, in __postinit__
self.assemble()
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 537, in assemble
redirects=self.binding_redirects))
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\depend\bindepend.py", line 224, in Dependencies
for lib, npth in selectImports(pth, xtrapath):
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\depend\bindepend.py", line 507, in selectImports
npth = getfullnameof(lib, xtrapath)
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\depend\bindepend.py", line 84, in getfullnameof
if os.path.exists(npth) and matchDLLArch(npth):
File "c:\users\sabee\anaconda3\lib\site-packages\PyInstaller\depend\bindepend.py", line 191, in matchDLLArch
pe = pefile.PE(filename, fast_load=True)
File "c:\users\sabee\anaconda3\lib\site-packages\pefile.py", line 1758, in __init__
self.__parse__(name, data, fast_load)
File "c:\users\sabee\anaconda3\lib\site-packages\pefile.py", line 1803, in __parse__
raise PEFormatError('The file is empty')
pefile.PEFormatError: 'The file is empty'