Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError on OS X #17

Open
svenaas opened this issue Jul 27, 2012 · 7 comments
Open

SyntaxError on OS X #17

svenaas opened this issue Jul 27, 2012 · 7 comments

Comments

@svenaas
Copy link

svenaas commented Jul 27, 2012

I just cloned git clone git://github.com/exaviorn/RasPiWrite.git (currently at 413db87) to a computer running OS X 10.6.8. Unfortunately:

$ chmod +x raspiwrite.py 
$ sudo ./raspiwrite.py 
  File "raspiwrite.py", line 177
    else
       ^
SyntaxError: invalid syntax

I get the same thing with

$ sudo python raspiwrite.py 
  File "raspiwrite.py", line 177
    else
       ^
SyntaxError: invalid syntax

I have

$ python --version
Python 2.6.1
@9thbit
Copy link

9thbit commented Jul 27, 2012

Also happening on OS X 10.7.4 with Python 2.7.1

@treehousetim
Copy link

simply put a colon on the end of that line.

You will also need to fix up some indentation issues. There are some tabs mixed in with spaces. I used textmate to do a find/replace to convert to all tabs, then cleaned up the few remaining indentation issues - it's not difficult. I'm assuming the maintainer will get these issues fixed soon and will re-commit to github. :)

@Rorto
Copy link

Rorto commented Aug 10, 2012

Same issue. But i'm unable to fix it. Can you show me the modified part ?

@treehousetim
Copy link

I ended up just using the command line tools for this.

@treehousetim
Copy link

But I'll see if I can dredge up my changed file.

@treehousetim
Copy link

@alx-1
Copy link

alx-1 commented Oct 26, 2012

thank you treehousetim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants