Re: [pygame] Help with pygame

2011-12-14 Thread Christopher Night
On Mon, Dec 12, 2011 at 6:06 PM, Christopher Night cosmologi...@gmail.comwrote: Try putting this in the python interpreter and tell us what you get. (Copy and paste the output exactly as you get it. Don't try to summarize): open(images.BMP) ; import pygame ; pygame.image.get_extended() ;

Re: [pygame] Help with pygame

2011-12-14 Thread Brian Fisher
How did you install pygame, Zack? On Wed, Dec 14, 2011 at 12:47 PM, Zack Baker zbaker1...@gmail.com wrote: Ok i ran it and this is the error it gave me... 2011-12-14 15:46:45.796 Python[12670:f07] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been

Re: [pygame] Help with pygame

2011-12-14 Thread Sean Wolfe
Is anybody else here on osx? On Wed, Dec 14, 2011 at 6:20 PM, Brian Fisher br...@hamsterrepublic.com wrote: How did you install pygame, Zack? On Wed, Dec 14, 2011 at 12:47 PM, Zack Baker zbaker1...@gmail.com wrote: Ok i ran it and this is the error it gave me... 2011-12-14 15:46:45.796

Re: [pygame] Help with pygame

2011-12-14 Thread Zack Baker
With fink -Zack On Dec 14, 2011, at 4:20 PM, Brian Fisher br...@hamsterrepublic.com wrote: How did you install pygame, Zack? On Wed, Dec 14, 2011 at 12:47 PM, Zack Baker zbaker1...@gmail.com wrote: Ok i ran it and this is the error it gave me... 2011-12-14 15:46:45.796

Re: [pygame] Help with pygame

2011-12-14 Thread Greg Ewing
Zack Baker wrote: With fink I'm on OSX, and I find it's generally less hassle in the long run to compile everything from source myself rather than rely on things like fink and macports, so I don't have much experience with them. But you could look into whether there is a fink version of

Re: [pygame] Help with pygame

2011-12-14 Thread Zack Baker
Ok, I have deleted everything pygame I could find an now I'm going to reinstall it. Along with python 3.2 because I guess now they are compatible on OSX which would be great. Btw in case it doesn't could you point me too a link that shows how to compile from source? Thanks -Zack On Dec 14,

Re: [pygame] Help with pygame

2011-12-14 Thread Greg Ewing
On 15/12/11 10:51, Zack Baker wrote: Ok, I have deleted everything pygame I could find an now I'm going to reinstall it. Along with python 3.2 because I guess now they are compatible on OSX which would be great. Btw in case it doesn't could you point me too a link that shows how to compile

Re: [pygame] Help with pygame

2011-12-14 Thread Greg Ewing
Zack Baker wrote: Traceback (most recent call last): File green-car-test.py, line 10, in module car=pygame.image.load('green-car.png') pygame.error: File is not a Windows BMP file It looks to me as though your PyGame installation doesn't have support for PNG files. It seems to fall back

Re: [pygame] Help with pygame

2011-12-14 Thread Brian Fisher
I use a Mac, and while I have compiled from source, I wouldn't recommend it because you still have to manage getting the dependencies yourself (meaning libpng, libjpg and sdl and maybe a couple others) I would use a prebuilt installer on this page, if you can find one that works:

Re: [pygame] Help with pygame

2011-12-14 Thread Lenard Lindstrom
You will need the SDL_image library to load anything other than BMP files. Lenard Lindstrom On 14/12/11 01:51 PM, Zack Baker wrote: Ok, I have deleted everything pygame I could find an now I'm going to reinstall it. Along with python 3.2 because I guess now they are compatible on OSX which

Re: [pygame] Help with pygame

2011-12-12 Thread Zack Baker
Just because I keep switching it around and trying different images with different extensions. I get the same error with all though -Zack On Dec 12, 2011, at 4:40 PM, Christopher Night cosmologi...@gmail.com wrote: Okay obvious question why is your code trying to load a file called

Re: [pygame] Help with pygame

2011-12-12 Thread Christopher Night
Can you please post images.BMP? You know, the image file you actually tried to load? I think it's possible your pygame was installed without support for file types other than uncompressed BMP. Try putting this in the python interpreter and tell us what you get. (Copy and paste the output exactly

Re: [pygame] Help with pygame

2011-12-12 Thread Ian Mallett
On Mon, Dec 12, 2011 at 4:06 PM, Christopher Night cosmologi...@gmail.comwrote: Can you please post images.BMP? You know, the image file you actually tried to load? I think it's possible your pygame was installed without support for file types other than uncompressed BMP. Try putting this in

Re: [pygame] Help with pygame

2011-12-11 Thread Zack Baker
Ok guys heres the code. Same error, better code. #!/usr/bin/env python import pygame pygame.init() #Set height and width of the screen size=[400,500] screen=pygame.display.set_mode(size) #Loop until user clicks the close button done=False clock=pygame.time.Clock() while done==False: #This

Re: [pygame] Help with pygame

2011-12-11 Thread Brian Fisher
Zach, code looks fine - can you attach the image as well? The problem may lie with it. thanks On Sun, Dec 11, 2011 at 2:49 PM, Zack Baker zbaker1...@gmail.com wrote: Ok guys heres the code. Same error, better code. #!/usr/bin/env python import pygame pygame.init() #Set height and width of

Re: [pygame] Help with pygame

2011-12-11 Thread Sean Wolfe
is there a reason why you're loading the image in the while loop? The way I'm reading the code you're loading the bmp every 100ms based on clock.tick(10). How about loading the image first then running the loop. How big is the bmp? On Sun, Dec 11, 2011 at 9:44 PM, Brian Fisher

Re: [pygame] Help with pygame

2011-12-11 Thread Sean Wolfe
also .. the error says windows bmp but you're on osx ... maybe we have a bug handling bmps in osx? On Sun, Dec 11, 2011 at 11:36 PM, Sean Wolfe ether@gmail.com wrote: is there a reason why you're loading the image in the while loop? The way I'm reading the code you're loading the bmp every

Re: [pygame] Help with pygame

2011-12-10 Thread Miriam English
Also, you might think this is pretty obvious, but it surprises me how many people I've seen make this mistake, so I'll mention it anyway, just in case... renaming a file with a different extension won't make it the right kind of file. For instance renaming a jpeg file from blah.jpg to blah.bmp

Re: [pygame] Help with pygame

2011-12-10 Thread Zack Baker
Sorry guys, my bad, I only changed the name when I put the code on there. It was both images.png or whatever. I'm very sorry for the confusion. Also could the problem be that I didn't draw the screen? -Zack On Dec 10, 2011, at 4:42 AM, Miriam English m...@miriam-english.org wrote: Also, you

Re: [pygame] Help with pygame

2011-12-10 Thread Brian Fisher
Zack, There are a lot of problems with the script you posted, but the error you are getting says that the first problem is with loading the image file, so might as well start there. So on your next reply, please attach the image file you are trying to load and draw. That way people can test

Re: [pygame] Help with pygame

2011-12-10 Thread Sean Wolfe
also you need a pygame.init() in there... On Sat, Dec 10, 2011 at 1:49 PM, Brian Fisher br...@hamsterrepublic.com wrote: Zack,  There are a lot of problems with the script you posted, but the error you are getting says that the first problem is with loading the image file, so might as well

Re: [pygame] Help with pygame

2011-12-10 Thread Zack Baker
Ok I will soon post some real code w/ image -Zack On Dec 10, 2011, at 2:12 PM, Sean Wolfe ether@gmail.com wrote: also you need a pygame.init() in there... On Sat, Dec 10, 2011 at 1:49 PM, Brian Fisher br...@hamsterrepublic.com wrote: Zack, There are a lot of problems with the

Re: [pygame] Help with pygame

2011-12-09 Thread Brian Fisher
There's no way that code matches that error... the code tries to load car.jpeg, and the error is from a line that tried to load images.BMP. So what's the actual name of the image? If you're not sure, what do you get when you type ls from a command prompt in the same directory as the python

Re: [pygame] Help with pygame

2011-12-09 Thread Ian Mallett
Also screen is not defined. You'd get that error later.

Re: [pygame] Help with pygame compilation

2010-12-21 Thread Christoph Gohlke
On 12/21/2010 10:22 AM, A BC wrote: Hi everyone, Please correct me if I am not on the right list, or if my question is misplaced, or if the subject is not well chosen. Here is my issue : - Running on a 32bits Win7 with Python 2.7 and VC++ 9.0 - Setup.py crashes when it is to compile

Re: [pygame] Help with pygame compilation

2010-12-21 Thread A BC
On Tue, Dec 21, 2010 at 7:29 PM, Christoph Gohlke cgoh...@uci.edu wrote: pygame-1.9.2pre installers for Python 2.7 are available at http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Oh, shame on me Thank you sincerely !

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-02 Thread Richard Jones
On Sun, 2 Dec 2007, Casey Duncan wrote: You can use fink (http://finkproject.org/) to install pygame with python 2.5. It's also handy for installing other libraries you might want (PIL, pyrex, ode, py2app, etc.). I would be wary of installing one of those parallel packaging systems. I did so

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-02 Thread Unnsse Khan
That's exactly what I think might have happened to me... (1) I installed all the available modules from: http://pythonmac.org/packages/py25-fat/index.html (2) These files installed the modules in separate places under: /Developer/Python (3) When I ran the shell and tried to import pygame:

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-02 Thread Casey Duncan
On Dec 2, 2007, at 12:23 PM, Richard Jones wrote: On Sun, 2 Dec 2007, Casey Duncan wrote: You can use fink (http://finkproject.org/) to install pygame with python 2.5. It's also handy for installing other libraries you might want (PIL, pyrex, ode, py2app, etc.). I would be wary of

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Brian Fisher
On Dec 1, 2007 7:10 PM, Unnsse Khan [EMAIL PROTECTED] wrote: Installed Pygame by installing the following files located at: http://pythonmac.org/packages/py25-fat/index.html There isn't a pygame package for python 2.5 at that page... I am not aware of a prebuilt pygame for python 2.5 for Mac

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Brian Fisher
On Dec 1, 2007 7:10 PM, Unnsse Khan [EMAIL PROTECTED] wrote: When I ran this program, I receive the following error message: Traceback (most recent call last): File /Users/untz/DevResources/Python/pygame_helloworld/hello.py, line 3, in module import pygame ImportError: No module

Re: [pygame] Help configuring Pygame on OS X Leopard

2007-12-01 Thread Casey Duncan
On Dec 1, 2007, at 8:12 PM, Brian Fisher wrote: On Dec 1, 2007 7:10 PM, Unnsse Khan [EMAIL PROTECTED] wrote: Installed Pygame by installing the following files located at: http://pythonmac.org/packages/py25-fat/index.html There isn't a pygame package for python 2.5 at that page... I am not