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.

i run the app and get this error. the little arrow points to the 'd', dont know what that means. plus i had the same error just before but on this line:

from quickly.widgets.dictionary grid import DictionaryGrid

the arrow pointed to the 'd' in grid as well. then i changed it to this:

from quickly.widgets.dictionary_grid import DictionaryGrid

i added a '_' in the middle. and now i have the syntax error in the question.

Thanks for any help that is given!

Traceback (most recent call last):
  File "bin/simple-player", line 32, in <module>
    import simple_player
  File "/home/alex/simple-player/simple_player/__init__.py", line 14, in <module>
    from simple_player import SimplePlayerWindow
  File "/home/alex/simple-player/simple_player/SimplePlayerWindow.py", line 51
    media_grid.show()
         ^
SyntaxError: invalid syntax
share|improve this question

1 Answer 1

up vote 0 down vote accepted

sudo apt-get install python-quickly.widgets
python
from quickly.widgets.dictionary_grid import DictionaryGrid
reports success

if you're getting a syntax error you should correct your indentation. the tutorial is right, you should actually follow it.

share|improve this answer
    
ok, now. what about the one in the question? media_grid.show() –  Alex Mar 25 '12 at 3:41
    
you should edit you question body to contain what fails. like the actual code that fails –  hbdgaf Mar 25 '12 at 3:42
    
the copy and paste version is different than the tutorial –  Alex Mar 25 '12 at 4:02

Your Answer

 
discard

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.