[Image-SIG] "The _imaging C module is not installed" error
David Ohlemacher
ohlemacher@bbn.com
Fri, 28 Jun 2002 15:43:40 -0400
<html>
Hi, <br>
<br>
How do I fix this: <font color="#FF0000">"The _imaging C module is
not installed"<br>
<br>
</font>_imaging.pyd is installed in c:\python22\dlls. I ran the
installer in <br>
<br>
Here is what I get when I run viewer.py blue_crossword.jpg:<br>
<font color="#800080">C:\py21\Samples> viewer.py
blue_crossword.jpg<br>
Traceback (most recent call last):<br>
File "C:\py21\Samples\viewer.py", line 44, in ?<br>
UI(root, im).pack()<br>
File "C:\py21\Samples\viewer.py", line 23, in
__init__<br>
self.image = ImageTk.PhotoImage(im)<br>
File "c:\py21\pil\ImageTk.py", line 86, in
__init__<br>
self.paste(image)<br>
File "c:\py21\pil\ImageTk.py", line 108, in paste<br>
im.load()<br>
File "c:\py21\pil\ImageFile.py", line 126, in load<br>
self.load_prepare()<br>
File "c:\py21\pil\ImageFile.py", line 180, in
load_prepare<br>
self.im = Image.core.new(self.mode, self.size)<br>
File "C:\py21\PIL\Image.py", line 37, in
__getattr__<br>
raise ImportError, "The _imaging C module is not
installed"<br>
ImportError: </font><font color="#FF0000">The _imaging C module is not
installed<br>
<br>
</font>Here is what python thinks is my path:<br>
<font color="#800080">>>> import sys<br>
>>> print sys.path<br>
['', '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']<br>
<br>
</font>Here is my PYTHONPATH system env var:<br>
<font color="#800080">c:\py21;c:\py21\PIL;c:\python22\dlls<br>
<br>
</font><x-sigsep><p></x-sigsep>
David Ohlemacher, Software Engineer<br>
BBN Technologies<br>
High Performance Computing Department<br>
127 John Clarke Rd.<br>
Middletown, Rhode Island 02842<br>
401-848-3542 (voice) 401-849-8611 (fax)<br>
</html>