Page 1 of 1

Python-Games ditn't start

Posted: Fri Oct 18, 2013 7:29 am
by Hugomuc
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

Re: Python-Games ditn't start

Posted: Fri Oct 18, 2013 9:24 am
by DeeJay
It might not be anything you have done...

For a start, can you try firing up Python Games from the 'Big Raspberry' GUI screen? For me, that gives a list of games that can be played. Some (four in a row, slide puzzle) work, some (pentomino, tertomino) don't.

I hope this thread might alert the people who package stuff for the Raspbian image that these demos seem to be 'broken'?

Re: Python-Games ditn't start

Posted: Fri Oct 18, 2013 9:35 am
by Hugomuc
Thanks!
Yes, I tryed to start the games from the GUI (startx) too. "four in a row", "slide puzzle") work, some (pentomino, tertomino) don't. The scripts won't work.
Greetings from Munich

Re: Python-Games ditn't start

Posted: Fri Oct 18, 2013 4:33 pm
by KenT
raspbian is missing the midi player needed to play the three tetris games

sudo apt-get update
sudo apt-get install timidity

should sort it.

Request to include timidity raised many moons ago. Seems stupid to have a set of example programs in a distribution for beginners that does not work.

https://github.com/asb/spindle/issues/57

Re: Python-Games ditn't start

Posted: Sun Oct 20, 2013 1:59 pm
by Hugomuc
Tnx for help. Tetromino works now!