Python-Games ditn't start
Posted: Fri Oct 18, 2013 7:29 am
Hello.
I'm new with Raspberry Pi and Python. I started with a Raspbian Image. There are some Pythongames on this installation, but they dont start.
The games are all installed in /home/pi/python_games. When I try to start a game, i.e. tetromino, "python tetronimo.py" I got a startmessage: "Press a key to play".
I press a key and get the message "...pats.cfg: No such file or directory".
I try to start tetromino in IDLE. Here I get the message: "Line 8 ImportError: No module named pygame"
Line 8 in tetromino.py is: "Import random, time, pygame, sys from pygame.locals.import".
So I installed pygame with apt-get install pygame..., but the games ditn't start.
Can anybody tell me, what is wrong or what is the correct way to start the pythonscripts from the raspbian image and how can I see, wether this are 2.7 or 3.x scripts.
Tnx Hugo
I'm new with Raspberry Pi and Python. I started with a Raspbian Image. There are some Pythongames on this installation, but they dont start.
The games are all installed in /home/pi/python_games. When I try to start a game, i.e. tetromino, "python tetronimo.py" I got a startmessage: "Press a key to play".
I press a key and get the message "...pats.cfg: No such file or directory".
I try to start tetromino in IDLE. Here I get the message: "Line 8 ImportError: No module named pygame"
Line 8 in tetromino.py is: "Import random, time, pygame, sys from pygame.locals.import".
So I installed pygame with apt-get install pygame..., but the games ditn't start.
Can anybody tell me, what is wrong or what is the correct way to start the pythonscripts from the raspbian image and how can I see, wether this are 2.7 or 3.x scripts.
Tnx Hugo