[Image-SIG] "The _imaging C module is not installed" error

David Ohlemacher ohlemacher@bbn.com
Fri, 28 Jun 2002 15:47:39 -0400


Hi,


How do I fix this: "The _imaging C module is not installed"
_imaging.pyd is installed in c:\python22\dlls. I ran the installer in


Here is what I get when I run viewer.py blue_crossword.jpg:
C:\py21\Samples> viewer.py blue_crossword.jpg
Traceback (most recent call last):
File "C:\py21\Samples\viewer.py", line 44, in ?
UI(root, im).pack()
File "C:\py21\Samples\viewer.py", line 23, in __init__
self.image = ImageTk.PhotoImage(im)
File "c:\py21\pil\ImageTk.py", line 86, in __init__
self.paste(image)
File "c:\py21\pil\ImageTk.py", line 108, in paste
im.load()
File "c:\py21\pil\ImageFile.py", line 126, in load
self.load_prepare()
File "c:\py21\pil\ImageFile.py", line 180, in load_prepare
self.im = Image.core.new(self.mode, self.size)
File "C:\py21\PIL\Image.py", line 37, in __getattr__
raise ImportError, "The _imaging C module is not installed"
ImportError: The _imaging C module is not installed


Here is what python thinks is my path:
 >>> import sys
 >>> print sys.path
['', 'c:\\py21', 'c:\\py21\\PIL', 'c:\\python22\\dlls', 
'C:\\py21\\Samples', 'c:\\python22\\lib', 'c:\\python22\\lib\\lib-tk', 
'c:\\python22', 'c:\\python22\\lib\\site-packages']


Here is my PYTHONPATH system env var:
c:\py21;c:\py21\PIL;c:\python22\dlls