Python Forum

Full Version: kivy - packaging touchtracer syntax error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

# -*- 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')
When running the command
python -m PyInstaller touchtracer.spec 
I get the following error

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
missing comma on the previous line?
Oh so simple, I was looking aimlessly for things like that and missed it.

Thank you Buran.