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

[pygame] Re: problems loading



I've gone as far as doing "chmod -R +rx *" in /Library/Frameworks, and /usr/local/lib.  I agree that it really, really looks like a permissions problem, but if it were, I'd think that lsof wouldn't tell me:

Mithril:/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages root# lsof | grep image
python2.4  7916          lak  txt     VREG       14,2      26968   511423 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pygame/image.so
python2.4  7916          lak  txt     VREG       14,2       9140   511424 /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pygame/imageext.so
python2.4  7916          lak  txt     VREG       14,2    1183600   507758 /Library/Frameworks/SDL_image.framework/Versions/A/SDL_image

This is while running python as user "lak" (me), importing pygame and checking the return value of pygame.image.get_extended() (which is 0).  imageext.so is the part of pygame containing load_extended, which loads non-BMP formats via SDL_image.  I would think that if there were a permissions problem, imageext.so wouldn't have been loadable.

In response Bob and Andrew, I just updated PIL to 1.1.5, and doble-checked that the image files were readable.  No luck :-(.

Larry

On 2/26/06, Laura Creighton <lac@xxxxxxxxxx> wrote:
If things work as root, but not as a normal user, I would check to
see that the permissions on the files, and the directories all the way
up to the root allow access.

Just an idea, I have not seen this behaviour myself,
Laura