[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] problem with load_extended
Hi Larry
Did you try to load the TGA image with the file extension like:
image_var = pygame.image.load('.../.../imagename.tga')
I'm just asking because I got similar error (on Mac) if I don't add
the file extension (in your case "tga"). Even if the extension is
wrong (you try to load tga but the image is a png-file) Pygame checks
the graphic type and shows it correct. It seems that Pygame wants an
extension, wether it's the right one or not (probably Windows thingy).
Just my 2 cents
Tyger
Am 26.02.2006 um 17:54 schrieb Larry Keber:
Greetings, I'm fairly new to both Python and PyGame. I'm running
under OS X 10.4.5, python 2.4.1. I've tried the pre-packaged
PyGame 1.7.0, and I've built pygame 1.71 along with the latest SDL
and SDL_image libraries from source. In all cases I see this
behavior:
pygame.image.load() won't load a TGA file (or a GIF, etc); it
complains that it isn't a Windows BMP file. I've read that this is
because PyGame wasn't compiled with SDL_image support. I'm certain
it is, however. Things get strange - when I attempt to load a TGA
as root, it works, but as a basic user, it doesn't. In fact,
pygame.image.get_extended() returns 1 as root, and 0 as a normal
user. I've checked things like pygame.ver, and pygame.__file__ and
both users are running the same code, as far as I can tell. I've
checked permissions on /usr/local/lib, and under /Library/
Frameworks and they look like everything is at least world
readable, and world executable.
Thanks in advance for any suggestions.
Larry