juan婷
2022-05-17 14:40
采纳率: 0%
浏览 35
已结题

python打包时出现invalid argument报错

 File "C:\Users\Acer\wo\QEW.spec", line 24, in <module>
    exe = EXE(
  File "C:\Users\Acer\AppData\Local\JetBrains\PyCharmCE2022.1\demo\PyCharmLearningProject\h\lib\site-packages\PyInstaller\building\api.py", line 524, in __init__
    self.__postinit__()
  File "C:\Users\Acer\AppData\Local\JetBrains\PyCharmCE2022.1\demo\PyCharmLearningProject\h\lib\site-packages\PyInstaller\building\datastruct.py", line 173, in __postinit__
    self.assemble()
  File "C:\Users\Acer\AppData\Local\JetBrains\PyCharmCE2022.1\demo\PyCharmLearningProject\h\lib\site-packages\PyInstaller\building\api.py", line 629, in assemble
    icon.CopyIcons(build_name, self.icon)
  File "C:\Users\Acer\AppData\Local\JetBrains\PyCharmCE2022.1\demo\PyCharmLearningProject\h\lib\site-packages\PyInstaller\utils\win32\icon.py", line 215, in CopyIcons
    return CopyIcons_FromIco(dstpath, [srcpath])
  File "C:\Users\Acer\AppData\Local\JetBrains\PyCharmCE2022.1\demo\PyCharmLearningProject\h\lib\site-packages\PyInstaller\utils\win32\icon.py", line 150, in CopyIcons_FromIco
    for i, f in enumerate(icons):
  File "C:\Users\Acer\AppData\Local\JetBrains\PyCharmCE2022.1\demo\PyCharmLearningProject\h\lib\site-packages\PyInstaller\utils\win32\icon.py", line 117, in __init__
    file.seek(e.dwImageOffset, 0)
OSError: [Errno 22] Invalid argument

手打路径也没有用😭

1条回答 默认 最新

相关推荐 更多相似问题