Kivy 1.9.0 / Python 3.4 Windows软件包' rthooks'错误,Win7 x64

时间:2015-07-17 08:22:35

标签: python windows package kivy

尝试将kivy项目打包到.exe并获取no-where。遵循指示http://kivy.org/docs/guide/packaging-windows.html努力,甚至尝试了我没有的包装建议。在诽谤中改变了我的rt_hooks_kivy.py ......没有帮助。任何超级赞赏的帮助...

.spec文件。

 $('#container').highcharts({
       chart: {
                height: 200,
               width:100
            });

记录失败:

# -*- mode: python -*-

from kivy.tools.packaging.pyinstaller_hooks import install_hooks
import os
install_hooks()



block_cipher = None


a = Analysis(['C:\\Users\\trobertson\\Documents\\Robotics-Dev\\Python\\LaserSelector\\BracingSelector\\main.py'],
             pathex=['C:\\Python34\\Lib\\site-packages\\kivy\\BracingProd'],
             hiddenimports=[],
             runtime_hooks=None,
             excludes=None,
             cipher=block_cipher)
pyz = PYZ(a.pure,
             cipher=block_cipher)
exe = EXE(pyz,
          a.scripts,
          exclude_binaries=True,
          name='BracingProd.exe',
          debug=False,
          strip=None,
          upx=True,
          console=True , icon='C:\\Users\\trobertson\\Documents\\Robotics-Dev\\Python\\LaserSelector\\BracingSelector\\Taylor-White-Icon-64.ico')
coll = COLLECT(exe, Tree('C:/Users/trobertson/Documents/Robotics-Dev/Python/LaserSelector/BracingSelector/'),
               Tree([f for f in os.environ.get('KIVY_SDL2_PATH', '').split(';') if 'bin' in f][0]),
               a.binaries,
               a.zipfiles,
               a.datas,
               strip=None,
               upx=True,
               name='BracingProd')

rt_hooks_kivy.py:

[INFO              ] Logger: Record log in C:\Users\trobertson\.kivy\logs\kivy_15-07-17_18.txt
[INFO              ] Kivy: v1.9.0
[INFO              ] Python: v3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]
[WARNING           ] stderr: Traceback (most recent call last):
[WARNING           ] stderr:   File "C:\Kivy-1.9.0-py3.4-win32-x64\Python34\Scripts\pyinstaller-script.py", line 9, in <module>
[WARNING           ] stderr:     load_entry_point('PyInstaller==3.0.dev0', 'console_scripts', 'pyinstaller')()
[WARNING           ] stderr:   File "C:\Kivy-1.9.0-py3.4-win32-x64\Python34\lib\site-packages\PyInstaller\main.py", line 96, in run
[WARNING           ] stderr:     run_build(opts, spec_file, pyi_config)
[WARNING           ] stderr:   File "C:\Kivy-1.9.0-py3.4-win32-x64\Python34\lib\site-packages\PyInstaller\main.py", line 49, in run_build
[WARNING           ] stderr:     PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
[WARNING           ] stderr:   File "C:\Kivy-1.9.0-py3.4-win32-x64\Python34\lib\site-packages\PyInstaller\build.py", line 2188, in main
[WARNING           ] stderr:     build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
[WARNING           ] stderr:   File "C:\Kivy-1.9.0-py3.4-win32-x64\Python34\lib\site-packages\PyInstaller\build.py", line 2134, in build
[WARNING           ] stderr:     exec(text, spec_namespace)
[WARNING           ] stderr:   File "<string>", line 5, in <module>
[WARNING           ] stderr:   File "C:\Kivy-1.9.0-py3.4-win32-x64\kivy34\kivy\tools\packaging\pyinstaller_hooks\__init__.py", line 13, in install_hooks
[WARNING           ] stderr:     sym['rthooks']['kivy'] = [join(curdir, 'rt-hook-kivy.py')]
[WARNING           ] stderr: KeyError: 'rthooks'

0 个答案:

没有答案