3.19K 浏览
0

下载并复制了所需的动态链接库后,还是出现以下错误提示:

Traceback (most recent call last):
File “E:TqpySptqinstaller.py”, line 15, in
PyInstaller.__main__.run([
File “E:Program FilesPython39libsite-packagesPyInstaller__main__.py”, line 126, in run
run_build(pyi_config, spec_file, **vars(args))
File “E:Program FilesPython39libsite-packagesPyInstaller__main__.py”, line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File “E:Program FilesPython39libsite-packagesPyInstallerbuildingbuild_main.py”, line 815, in main
build(specfile, kw.get(‘distpath’), kw.get(‘workpath’), kw.get(‘clean_build’))
File “E:Program FilesPython39libsite-packagesPyInstallerbuildingbuild_main.py”, line 762, in build
exec(code, spec_namespace)
File “E:TqpySpapp.spec”, line 23, in
exe = EXE(pyz,
File “E:Program FilesPython39libsite-packagesPyInstallerbuildingapi.py”, line 524, in __init__
self.__postinit__()
File “E:Program FilesPython39libsite-packagesPyInstallerbuildingdatastruct.py”, line 159, in __postinit__
self.assemble()
File “E:Program FilesPython39libsite-packagesPyInstallerbuildingapi.py”, line 620, in assemble
icon.CopyIcons(tmpnm, self.icon)
File “E:Program FilesPython39libsite-packagesPyInstallerutilswin32icon.py”, line 212, in CopyIcons
return CopyIcons_FromIco(dstpath, [srcpath])
File “E:Program FilesPython39libsite-packagesPyInstallerutilswin32icon.py”, line 149, in CopyIcons_FromIco
for i, f in enumerate(icons):
File “E:Program FilesPython39libsite-packagesPyInstallerutilswin32icon.py”, line 113, in __init__
entry.fromfile(file)
File “E:Program FilesPython39libsite-packagesPyInstallerutilswin32icon.py”, line 72, in fromfile
self._fields_ = list(struct.unpack(self._format_, data))
struct.error: unpack requires a buffer of 16 bytes

bhqt01 问的问题 2021年9月28日