鱼C论坛

 找回密码
 立即注册
查看: 2728|回复: 4

请教一个Pyinstaller打包的问题

[复制链接]
发表于 2019-10-8 18:41:08 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
C:\Users\yang>pyinstaller -F c:\python-test\gadataGL.py
821 INFO: PyInstaller: 3.5
822 INFO: Python: 3.5.2
822 INFO: Platform: Windows-7-6.1.7601-SP1
823 INFO: wrote C:\Users\yang\gadataGL.spec
844 INFO: UPX is not available.
847 INFO: Extending PYTHONPATH with paths
['c:\\python-test', 'C:\\Users\\yang']
847 INFO: checking Analysis
8487 INFO: checking PYZ
10267 INFO: checking PKG
10293 INFO: Building because toc changed
10293 INFO: Building PKG (CArchive) PKG-00.pkg
27298 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 6161)
27299 INFO: Updating manifest in C:\Users\yang\AppData\Roaming\pyinstaller\bincache00_py35_64bit\libpng16.dll
27302 INFO: Updating resource type 24 name 2 language 1033
27302 ERROR: C:\Users\yang\AppData\Roaming\pyinstaller\bincache00_py35_64bit\libpng16.dll
Traceback (most recent call last):
  File "c:\anaconda3\lib\runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Anaconda3\Scripts\pyinstaller.exe\__main__.py", line 9, in <module>
  File "c:\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\anaconda3\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 844, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\build_main.py", line 791, in build
    exec(code, spec_namespace)
  File "C:\Users\yang\gadataGL.spec", line 33, in <module>
    console=True )
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\api.py", line 435, in __init__
    upx_exclude=self.upx_exclude
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\api.py", line 197, in __init__
    self.__postinit__()
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
    self.assemble()
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\api.py", line 262, in assemble
    dist_nm=inm)
  File "c:\anaconda3\lib\site-packages\PyInstaller\building\utils.py", line 340, in checkCache
    [language])
  File "c:\anaconda3\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 939, in update_resources
    names, languages)
  File "c:\anaconda3\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 1017, in UpdateManifestResourcesFromXML
    languages or [0, "*"])
  File "c:\anaconda3\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 202, in UpdateResources
    win32api.UpdateResource(hdst, type_, name, data, language)
  File "c:\anaconda3\lib\site-packages\win32ctypes\pywin32\win32api.py", line 269, in UpdateResource
    handle, type, name, language, lp_data, len(lp_data))
  File "c:\anaconda3\lib\site-packages\win32ctypes\core\cffi\_resource.py", line 129, in _UpdateResource
    lpData = ffi.from_buffer(cData)
  File "c:\anaconda3\lib\site-packages\cffi\api.py", line 340, in from_buffer
    return self._backend.from_buffer(self.BCharA, python_buffer)
TypeError: from_buffer() cannot return the address of the raw string within a bytes or unicode object
小甲鱼最新课程 -> https://ilovefishc.com
回复

使用道具 举报

发表于 2019-10-8 21:21:08 | 显示全部楼层
27302 ERROR: C:\Users\yang\AppData\Roaming\pyinstaller\bincache00_py35_64bit\libpng16.dll

重新安装pyinstaller试试
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-10-8 21:55:26 | 显示全部楼层
谢谢,我试一下。
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-10-15 11:11:40 | 显示全部楼层
还是不得行哟,急等大师帮忙。
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2019-10-15 21:16:34 | 显示全部楼层
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-1-19 20:56

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表