PyInstaller之后,视频应用立即崩溃

时间:2020-04-03 10:55:37

标签: python kivy pyinstaller

我想用视频播放器构建应用程序。我使用Pyinstaller。我认为这是issuedocumentation,所以我的.spec文件看起来像

# -*- mode: python ; coding: utf-8 -*-
from kivy_deps import sdl2, glew, gstreamer
block_cipher = None


a = Analysis(['D:\\Dev\\Python\\projects\\KivyExample\\main.py'],
             pathex=['D:\\Dev\\Python\\projects\\KivyExample\\VideoApp'],
             binaries=[],
             datas=[],
             hiddenimports=[],
             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='VideoApp',
          debug=False,
          bootloader_ignore_signals=False,
          strip=False,
          upx=True,
          console=True )

coll = COLLECT(exe,
                Tree('dist\\share\\glew\\bin\\'),
                Tree('dist\\share\\sdl2\\bin\\'),
                Tree('dist\\share\\gstreamer\\bin'),
                Tree('D:\\Dev\\Python\\projects\\KivyExample\\VideoApp\\'),
                a.binaries,
                a.zipfiles,
                a.datas,
                *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins + gstreamer.dep_bins)],
                strip=False,
                upx=True,
                upx_exclude=[],
                name='VideoApp')

但是,当我运行此VideoApp.exe时,它将立即退出。我在做什么错了?

0 个答案:

没有答案