Python Forum
kivy - packaging touchtracer syntax error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
kivy - packaging touchtracer syntax error
#1
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
Reply
#2
missing comma on the previous line?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

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

Thank you Buran.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Syntax error for "root = Tk()" dlwaddel 15 1,183 Jan-29-2024, 12:07 AM
Last Post: dlwaddel
Photo SYNTAX ERROR Yannko 3 387 Jan-19-2024, 01:20 PM
Last Post: rob101
  Syntax error while executing the Python code in Linux DivAsh 8 1,588 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  Code is returning the incorrect values. syntax error 007sonic 6 1,229 Jun-19-2023, 03:35 AM
Last Post: 007sonic
  Error when running kivy on python janeik 8 2,043 Jun-16-2023, 10:58 PM
Last Post: janeik
  syntax error question - string mgallotti 5 1,318 Feb-03-2023, 05:10 PM
Last Post: mgallotti
  Syntax error? I don't see it KenHorse 4 1,259 Jan-15-2023, 07:49 PM
Last Post: Gribouillis
  Syntax error tibbj001 2 893 Dec-05-2022, 06:38 PM
Last Post: deanhystad
  Python-for-Android:p4a: syntax error in main.py while compiling apk jttolleson 2 1,852 Sep-17-2022, 04:09 AM
Last Post: jttolleson
  Simple Python API, need packaging/removing hardcoding zxcv101 2 1,137 Jun-13-2022, 03:09 PM
Last Post: zxcv101

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020