Post new topic    
Blubber Bloat
Send private message
The one about pygame 
 PostFri May 17, 2013 2:00 pm
Send private message Reply with quote
Ah, yes, another one of those "this is getting into the realms of 'off-topic' discussion" threads that seem to be all the craze these days.

In this episode, we shall be dealing with Meowskivich and his CrAaAaZy adventures in getting pygame to work for him.

Episode 1 - How do?

Meowskivich: Bleargh, I installed pygame via this tutorial: http://inventwithpython.com/pygame/chapters/ and that didn't work when I did the
Code:
import pygame
test, so I uninstalled, then reinstalled in a folder directly in my python folder, and it worked THEN, but in the "hello world" program test that it sets up in the second chapter of said tutorial, I kept getting an error with line 2
Code:
from pygame.locals import *
with a statement stating "This simply does not exist." (or at least something along those lines). So yeah, How do I make it work? Oh, and I might as well say that I'm using, I believe, Python 3.3.1, though this is the most updated version of pygame, which is for 3.2.7, I believe.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x V
Liquid Metal King Slime
Send private message
 
 PostFri May 17, 2013 3:43 pm
Send private message Reply with quote
Install Python 2.7 That is the latest version of Python2. Your problems are happening because you are following a python2 tutorial but using python 3.

Don't worry that use are not using the newest version of python, just make sure you are using the newest version of python2

Python2 and Python3 are separate forks of the language. For a person learning python they are almost completely the same, but for installing libraries like pygame it is super important that you use the right fork.
Blubber Bloat
Send private message
 
 PostFri May 17, 2013 4:29 pm
Send private message Reply with quote
Huh, go figure.
I still don't understand the exact differences in the versions, but...it installed without extraneous effort this time...

thanks james.'

edit: success!
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x V
Liquid Metal King Slime
Send private message
 
 PostFri May 17, 2013 8:40 pm
Send private message Reply with quote
Python2 and Python3 are brothers. Python2 is the older brother, and Python3 is the younger brother.

A few years back, Python3 announced that he did not want to work on the farm, he wanted to go to college and get a degree.

Python2 was dismayed that his little brother wanted to leave the farm, and he warned him that it was going to be a waste of time and effort, but Python3 was determined, so he went.

Python3 went off to college to learn new things, but meanwhile Python2 was at home working the farm, and everybody was proud of him. It was a good farm, and Python2 was a good worker. He was sure to prosper, unlike his little brother, going out and taking big risks.

Recently, Python3 graduated and came home. Everyone sneered at him and looked down at him, because he had weak arms and couldn't do the work that Python2 could. Everybody said that Python3 was washed up, and had wasted his youth. He wouldn't amount to anything, and all that money on college could have been better spent.

The thing is, Python3 learned a lot in college. He wasn't just partying. His degree was in agricultural engineering, and he started to put his new knowledge to work, improving the farm, and learning to work alongside his older brother to do the farm work.

Python2's resentment towards his brother slowly melted away, as he saw how talented Python3 was. Python3 learned quick, and had good ideas!

Right now, Python2 still runs the farm, but everyone can see Python3's potential, and there is no more talk of him being a failure. Python3 can't do the heavy lifting quite as well as his brother, but he is getting stronger fast, and his improvements to the farm are making life better.

Python2 knows that soon he will hand over the farm to his brother, and he believes the transition will go smoothly.

Python3 understands this too. he knows he is the future of the farm, but he also knows his older brother has all the experience, and many good old friends in the community, so out of respect, he is not rushing things. It will happen when the time is right.

The cows will keep getting milked. the chickens will keep laying eggs. The fields will keep getting plowed, planted, and harvested.
Blubber Bloat
Send private message
 
 PostFri May 17, 2013 9:41 pm
Send private message Reply with quote
Odd....but okay then.
dOn'T MiNd mE! i'M jUsT CoNtAgIoUs!!!
Play Orbs CCG: http://orbsccg.com/r/4r6x V
Display posts from previous: