Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 18th, 2008, 8:31 AM   #1
ericgrave
Newbie
 
Join Date: Apr 2008
Posts: 9
Rep Power: 0 ericgrave is on a distinguished road
help!!

Can anyone help me out i have python on my computer and pygame (well i think i have) and at the moment am following a book on game programming... and i cannot seem to do anythin rite.... just wondered if there is any way to see if pygame is actually installed on my system correctly?? could anyone help please
ericgrave is offline   Reply With Quote
Old Apr 18th, 2008, 10:10 AM   #2
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 245
Rep Power: 1 Jabo is on a distinguished road
Re: help!!

Start>Settings>Control Panel>>Add/Remove Programs and look for a Pygames entry? If it was installed, it should be there.
Jabo is offline   Reply With Quote
Old Apr 18th, 2008, 12:05 PM   #3
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 169
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: help!!

Indeed it will be listed there, Also you should note that the latest version of pygame doesn't run with the newest version of Python. You will find that if you are running Python 2.5.2 then you won't get pygame to work.

You should download and install Python 2.4.4 And reinstall PyGame specifying Python 2.4.4's path. Then run the 2.4.4 IDLE, you should find that you don't have any problems then

Cheers,
Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Old Apr 18th, 2008, 1:44 PM   #4
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: help!!

A very telling way of checking if a module is properly installed, is by opening Python IDLE or Python Console, and typing "import pygame". If an error appears, Python can't find Pygame.

If the line executes without an error, then type "dir(pygame)". If you don't get a large list of functions, Pygame was not completely installed, but it was found.
Sane is offline   Reply With Quote
Old Apr 18th, 2008, 3:23 PM   #5
ericgrave
Newbie
 
Join Date: Apr 2008
Posts: 9
Rep Power: 0 ericgrave is on a distinguished road
Re: help!!

i did the import pygame nothing happens but i do have new python running so i will try and unistall em and go for the older version of python thx
ericgrave is offline   Reply With Quote
Old Apr 18th, 2008, 3:28 PM   #6
ericgrave
Newbie
 
Join Date: Apr 2008
Posts: 9
Rep Power: 0 ericgrave is on a distinguished road
Re: help!!

lol k i just downloaded python 2.4.4 now its sayin somethin about my processor lmao but my processor is a core 2 duo so i dont understand whats going off is there ne other lang that can make games?
ericgrave is offline   Reply With Quote
Old Apr 18th, 2008, 4:39 PM   #7
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Re: help!!

umm.. I hate to point this out, but if you can't get a simple IDE to work properly, it might be hard for you to write a functional game. The lack of patience part will probably get you
OpenLoop is offline   Reply With Quote
Old Apr 18th, 2008, 4:41 PM   #8
ericgrave
Newbie
 
Join Date: Apr 2008
Posts: 9
Rep Power: 0 ericgrave is on a distinguished road
Re: help!!

lmao thats not good then
ericgrave is offline   Reply With Quote
Old Apr 18th, 2008, 5:07 PM   #9
Freaky Chris
Hobbyist Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 169
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: help!!

openLoop does have a point, however in answer to your question. Java, C, C++. Perhaps you should learn the basics first then work up to games. Just my 2 cents.

Chris
__________________
Who said i couldn't program
sarcasm = raw_input('Type in a sarcastic remark: ')
print sarcasm
Freaky Chris is offline   Reply With Quote
Old Apr 19th, 2008, 10:28 AM   #10
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,799
Rep Power: 5 Sane will become famous soon enough
Re: help!!

Quote:
Originally Posted by ericgrave View Post
i did the import pygame nothing happens
By "nothing happens", do you mean no error appears? Because that's the equivilent of "If the line executes without an error". So it sounds like your Pygame was found. Now just follow the last part of my instructions.
Sane is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:32 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC