Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
$ quickly run
Traceback (most recent call last):
  File "bin/mybrowser", line 32, in <module>
    import mybrowser
  File "/home/michael/mybrowser/mybrowser/", line 14, in <module>
    from mybrowser import MybrowserWindow
  File "/home/michael/mybrowser/mybrowser/", 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… ? Thanks! – David Planella Jun 21 '12 at 12:49

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 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.