0
我有以下项目结构: Imagekivy Windows应用程序不启动
,我试图通过生成教程Pyinstaller here 我有以下的.spec文件.exe文件的应用程序:
# -*- mode: python -*-
from kivy.deps import glew
block_cipher = None
a = Analysis(['C:\\Users\\Mohamad\\PycharmProjects\\offline_file_archiever\\app\\mai n.py'],
pathex=['C:\\Users\\Mohamad\\PycharmProjects\\offline_file_archiever\\build'],
binaries=None,
datas=None,
hiddenimports=['sqlite3'],
runtime_hooks=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='sample_build',
debug=False,
strip=False,
upx=True,
console=True)
coll = COLLECT(exe,Tree('C:/Users/Mohamad/PycharmProjects/offline_file_archiever/app/gui'),
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in glew.dep_bins],
strip=False,
upx=True,
name='sample_build')
然而,应用程序只是即时启动和关闭,我找不到问题
从命令行运行应用程序。这会告诉你错误。很可能你错过了一些你需要包含在'hiddenimports'中的文件。 – Repiklis
我应该在隐藏入口中添加什么? –
@MohamadAlhaddad look [here](http://stackoverflow.com/a/15318447/5994041) – KeyWeeUsr