Le 19/5/2008, "Jan Spurný" <[EMAIL PROTECTED]> a écrit:

>I'm writing C module for python and there are few functions which are 
>accepting PIL Images and they should return new PIL images. When I modify 
>given PIL image, it's fine, but I would really like to return new Image and 
>there's a problem - when returning a new PIL image, I need to create it and 
>therefore use functions like ImagingNew. However this does not work - 
>compilation of my module works just fine, but after importing module from 
>python I get:
>
>ImportError: mymodule.so: undefined symbol: ImagingNew

I don't have answer to your question, but a workarround is to create the
image in the upper python module, and give the reference (I guess you
have a pure python imported by the final user, and which uses the C
module)...
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to