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

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



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!