Pygame residing in Python 2.X instead of Python 3.x

Questions related to Raspberry Pi Projects Kit from Science Buddies only.

Moderators: AmyCowen, bfinio, MadelineB, sunmoonstars, Moderators

Locked
EdV2
Posts: 1
Joined: Wed Jul 22, 2015 2:50 pm
Occupation: Engineer Mentor
Project Question: pygames on Raspberry Pi
Project Due Date: na
Project Status: Not applicable

Pygame residing in Python 2.X instead of Python 3.x

Post by EdV2 »

I work for the Teen Tech Center at HCLIB (Hennepin County Library) and we recently purchased several Science Buddy Raspberry Pi and IO Kits.

While trying out the games (Invent Your Own Computer Games with Python installed as purchased) I discovered that they were crashing in Python 2.X and not running in Python 3.X. The pygame library is supposed to be installed in the Python 3.X libraries.

I could fix this pretty simply on a windows PC but I am a bit baffled by the OS of the Raspberry Pi.

Anyone else running into or working on this issue?
bfinio
Expert
Posts: 740
Joined: Mon Aug 12, 2013 2:41 pm
Occupation: Science Buddies Staff
Project Question: Expert
Project Due Date: n/a
Project Status: Not applicable

Re: Pygame residing in Python 2.X instead of Python 3.x

Post by bfinio »

Hi EdV2,

Sorry for the late reply on this. Unfortunately I don't have any experience with the Pygame library since we developed all of the Science Buddies content for this kit using Scratch. However, given all the third-party software that comes with the Raspberry Pi, it wouldn't surprise me if something is broken, especially since our kit comes with an older version of Raspbian (we had to do this to maintain compatibility with ScratchGPIO, a third-party add on that allows Scratch to control the GPIO pins).

It doesn't look like you're the only person who's had problems installing Pygame or getting it to run:

https://www.google.com/search?q=raspber ... errypi.org

but a lot of those forum posts are from 2012 or 2013, so I'm not sure how relevant they are now. It does seem like a lot of them say that Pygame works with Python 2.x but NOT 3.x.

Another option is to install the latest version of Raspbian on a separate SD card (this way you will avoid overwriting the Science Buddies content on the one that came with your kit), and hopefully the issue has been fixed. You can find instructions on their official download page:

https://www.raspberrypi.org/downloads/

-Ben
Vanbailey
Posts: 1
Joined: Sat Feb 11, 2017 2:08 am
Occupation: Teacher

Re: Pygame residing in Python 2.X instead of Python 3.x

Post by Vanbailey »

There are some tricks to download to phone me.
Locked

Return to “Raspberry Pi Projects Kit”