[Image-SIG] using PIL from different module

Frédéric frederic.mantegazza at gbiloba.org
Mon May 19 12:21:36 CEST 2008


Le 19/5/2008, "Jan Spurný" <JSpurny at seznam.cz> 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)...


More information about the Image-SIG mailing list