[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">&quot;The _imaging C module is
not installed&quot;<br>
<br>
</font>_imaging.pyd is installed in c:\python22\dlls.&nbsp; 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&gt; viewer.py
blue_crossword.jpg<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;C:\py21\Samples\viewer.py&quot;, line 44, in ?<br>
&nbsp;&nbsp;&nbsp; UI(root, im).pack()<br>
&nbsp; File &quot;C:\py21\Samples\viewer.py&quot;, line 23, in
__init__<br>
&nbsp;&nbsp;&nbsp; self.image = ImageTk.PhotoImage(im)<br>
&nbsp; File &quot;c:\py21\pil\ImageTk.py&quot;, line 86, in 
__init__<br>
&nbsp;&nbsp;&nbsp; self.paste(image)<br>
&nbsp; File &quot;c:\py21\pil\ImageTk.py&quot;, line 108, in paste<br>
&nbsp;&nbsp;&nbsp; im.load()<br>
&nbsp; File &quot;c:\py21\pil\ImageFile.py&quot;, line 126, in load<br>
&nbsp;&nbsp;&nbsp; self.load_prepare()<br>
&nbsp; File &quot;c:\py21\pil\ImageFile.py&quot;, line 180, in
load_prepare<br>
&nbsp;&nbsp;&nbsp; self.im = Image.core.new(self.mode, self.size)<br>
&nbsp; File &quot;C:\py21\PIL\Image.py&quot;, line 37, in
__getattr__<br>
&nbsp;&nbsp;&nbsp; raise ImportError, &quot;The _imaging C module is not
installed&quot;<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">&gt;&gt;&gt; import sys<br>
&gt;&gt;&gt; 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>