[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] BUG: seg fault when loading image from file object



Is there something I can do to help fix this? I'm not real familiar with windows development, but if someone can point me in the right direction I might be able to spend some time on this this weekend.

--Mike

René Dudfield wrote:
I think this might be because the 1.7.1release for python2.5 didn't
link against the correct C library.  Files can not be shared amongst
the two C libraries.


On 6/22/07, Michael George <mdgeorge@xxxxxxxxxxxxxx> wrote:
Hi, I'm running pygame 1.7.1release against python 2.5.1 on various
windows flavors.  When loading an image from a file object using
pygame.image.load(...) I encounter a segmentation fault.  Passing in a
file name works fine, but since I also want to use the same code with
tar files, I'd prefer to use file objects.

To reproduce:

import pygame
pygame.init()
pygame.image.load( file( 'foo.png' ) )

Thanks!