[Image-SIG] unable to import imaging c module

Atishay Kumar contactatishay at gmail.com
Tue Feb 10 01:08:39 CET 2009


i am trying to use PIL, with Django to display Captcha. This could be newbie
stuff as I am new to python and PIL

I am getting following error when importing ImageFont.

ImportError: The _imaging C module is not installed

I have the file though.

[bash]# file PIL/_imaging.so

PIL/_imaging.so: ELF 32-bit LSB shared object, Intel 80386, version 1
(SYSV), not stripped

How could I fix this?

I am able to import other stuff like Image, ImageDraw, ImageColor

How can I find out version of PIL?



>>> import ImageFont
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.5/site-packages/PIL/ImageFont.py", line 115,
in <module>
    class FreeTypeFont:
  File "/usr/local/lib/python2.5/site-packages/PIL/ImageFont.py", line 135,
in FreeTypeFont
    def getmask2(self, text, mode="", fill=Image.core.fill):
  File "/usr/local/lib/python2.5/site-packages/PIL/Image.py", line 36, in
    raise ImportError("The _imaging C module is not installed")
ImportError: The _imaging C module is not installed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20090209/63222b27/attachment.htm>

More information about the Image-SIG mailing list