Python Forum
kivy - packaging touchtracer syntax error - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: kivy - packaging touchtracer syntax error (/thread-21783.html)



kivy - packaging touchtracer syntax error - cram - Oct-14-2019

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/packaging-windows.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



RE: kivy - packaging touchtracer syntax error - buran - Oct-14-2019

missing comma on the previous line?


RE: kivy - packaging touchtracer syntax error - cram - Oct-14-2019

Oh so simple, I was looking aimlessly for things like that and missed it.

Thank you Buran.