Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
$ quickly run
Traceback (most recent call last):
  File "bin/mybrowser", line 32, in <module>
    import mybrowser
  File "/home/michael/mybrowser/mybrowser/__init__.py", line 14, in <module>
    from mybrowser import MybrowserWindow
  File "/home/michael/mybrowser/mybrowser/MybrowserWindow.py", line 39
    def on_refreshbutton_clicked(self,widget):  
 ^SyntaxError: invalid syntax

I was up to 26th minute on this Youtube video:

When I was to type quickly run, I got this invalid syntax. Is there something I've done wrong?

share|improve this question
It's difficult to tell where the syntax error lies without seeing your code. Would you mind publishing your code somewhere, as described on askubuntu.com/questions/154129/… ? Thanks! –  David Planella Jun 21 '12 at 12:49

1 Answer 1

Indentation is very important in python. Here you typed code without proper indentation. Retry with proper indentation. If it still doesn't work post the contents of Mybrowser.py in your question.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.