Re: bash: syntax error near unexpected token

2010-08-17 Thread Hans Mulder
Benjamin Kaplan wrote: On Mon, Aug 16, 2010 at 11:33 PM, kreglet kreg...@gmail.com wrote: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) bash: syntax error near unexpected token `45' And this is what's supposed to happen any time you try this in any shell. When you call evenodd, bash

bash: syntax error near unexpected token

2010-08-16 Thread kreglet
to test if an int is even or odd. Before: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) 45 is odd Now: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) bash: syntax error near unexpected token `45' The above is just an example. ALL of my scripts that worked before no longer work

Re: bash: syntax error near unexpected token

2010-08-16 Thread Benjamin Kaplan
were calling Python using the -i flag, which runs the interactive interpreter after the script is finished executing. $ python -i modtest.py evenodd(45) 45 is odd Now: desktop:~/bin$ modtest.py desktop:~/bin$ evenodd(45) bash: syntax error near unexpected token `45' And this is what's

unexpected token `;'

2009-08-25 Thread bbarbero
it gives an error like this: sfplay /Volumes/HAL/Datasets/Audio/PalcoPrincipal/mp3_resampled_44100/10005.mp3 sh: -c: line 1: syntax error near unexpected token `;' sh: -c: line 1: `; } 21' Ive been searching for the meaning of the error, and It really depends on the script, but I would

Re: unexpected token `;'

2009-08-25 Thread mmelchert
bbarb...@inescporto.pt wrote: Hello to all! I am struggling with a script in python for a while now, and decided to look for some help. I am running a code that takes commands from Marsyas(open source for Music analysis). #!/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6

Re: unexpected token `;'

2009-08-25 Thread Diez B. Roggisch
bbarb...@inescporto.pt wrote: Hello to all! I am struggling with a script in python for a while now, and decided to look for some help. I am running a code that takes commands from Marsyas(open source for Music analysis). #!/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6

Re: unexpected token `;'

2009-08-25 Thread Benjamin Kaplan
On Tue, Aug 25, 2009 at 7:25 AM, Diez B. Roggisch de...@nospam.web.dewrote: Hello to all! I am struggling with a script in python for a while now, and decided to look for some help. I am running a code that takes commands from Marsyas(open source for Music analysis).

Re: unexpected token `;'

2009-08-25 Thread Peter Otten
bbarb...@inescporto.pt wrote: I am struggling with a script in python for a while now, and decided to look for some help. I am running a code that takes commands from Marsyas(open source for Music analysis). cmd = sfplay + colist[2] print cmd fileout = commands.getoutput(cmd) You have to