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.

whenever i make a program on geany and with python and use the pygame module and run it it returns with an error: Traceback (most recent call last): File "clock.py", line 1, in import time,pygane ImportError: No module named pygane

i heard that if you run python 2.7.3 on geany it recognizes the pygame module

share|improve this question
    
pygame is not pygane - perhaps that's an additional issue. –  gertvdijk Oct 6 '13 at 10:59
    
Did you configure geany to run python scripts? Did enable the universe repository? Did you install sudo apt-get install python-pygame? –  MadMike Oct 7 '13 at 11:16
add comment

1 Answer

Either configure Geany inside build menu -> Set build commands hard to use Python 2.7 by choosing python2 (is this supported by Ubuntu?) or adjust your shebang of your Python files.

share|improve this answer
add comment

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.