Oct-14-2019, 10:53 AM
I'm currently learning python and was looking a kivy as well in order to package an app but I'm getting an error. I've been going through the tutorial here https://kivy.org/doc/stable/guide/packag...ndows.html
I'm up to adding entries to the spec file, have done that an saved the file.
When running the command
I get the following error
I'm up to adding entries to the spec file, have done that an saved the file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# -*- mode: python ; coding: utf-8 -*- from kivy_deps import sdl2, glew block_cipher = None a = Analysis([ 'C:\\Users\\gmoor\\kivy_venv\\share\\kivy-examples\\demo\\touchtracer\\main.py' ], pathex = [ 'C:\\Users\\gmoor\\Documents\\Touchtracer' ], 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 = 'touchtracer' , debug = False , bootloader_ignore_signals = False , strip = False , upx = True , console = True ) coll = COLLECT(exe, Tree( 'C:\\Users\\gmoor\\Documents\\Touchtracer\\build\\touchtracer\\' ), a.binaries, a.zipfiles, a.datas, * [Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)] strip = False , upx = True , upx_exclude = [], name = 'touchtracer' ) |
1 |
python - m PyInstaller touchtracer.spec |
Error:File "C:\Users\gmoor\AppData\Local\Programs\Python\Python37\lib\site-packages\PyInstaller\building\build_main.py", line 790, in build
code = compile(f.read(), spec, 'exec')
File "touchtracer.spec", line 37
strip=False,
^
SyntaxError: invalid syntax