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

Re: [pygame] problem with load_extended



Ah, interesting.  From root, the import works fine.  From account "lak":

ImportError: Failure linking new module: /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/pygame/imageext.so: Symbol not found: _SDL_Error
Referenced from: /Library/Frameworks/SDL_image.framework/Versions/A/SDL_image
Expected in: /Users/lak/Library/Frameworks/SDL.framework/Versions/A/SDL


Checking closer, I saw that the SDL.framework under my user directory is from 2004. I renamed it to something else, and all seems to be well!

Thanks, Brian, and everyone else, for your advice!

Larry


Brian Fisher wrote:
On 2/26/06, Larry Keber <lakkal@xxxxxxxxx> wrote:
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

Hey Larry,
  I found a copy of pygame 1.7.1's image.c, and it looks like the
value of the get_extended() flag is based on whether the import of
pygame.image was able to subsequently import pygame.imageext - In
initimage() in pygame.image it's calling:
  extmodule = PyImport_ImportModule("pygame.imageext");
and setting the flag for get_extended based on that. My thinking is
that the import may be returning an exception which is getting
swallowed

So what happens if you try to import pygame.imageext from python? Do
you get an exception then?