Python Imaging Library - Install Question

Fredrik Lundh fredrik at pythonware.com
Wed Dec 15 04:53:16 EST 1999


Colleen & Brian Smith <greybria at direct.ca>:
> If I try to run some of the example code in the manual, I get the following
> stack trace:
> 
> >>> im=Image.open("C:\\Image Files\\b-29.jpg")
> >>> im.show()
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
>   File "c:\Python\PIL\Image.py", line 694, in show
>     _showxv(self, title, command)
>   File "c:\Python\PIL\Image.py", line 974, in _showxv
>     file = self._dump(format=format)
>   File "c:\Python\PIL\Image.py", line 307, in _dump
>     self.load()
>   File "c:\Python\PIL\ImageFile.py", line 125, in load
>     self.load_prepare()
>   File "c:\Python\PIL\ImageFile.py", line 175, in load_prepare
>     self.im = Image.core.new(self.mode, self.size)
>   File "c:\Python\PIL\Image.py", line 40, in __getattr__
>     raise ImportError, "The _imaging C module is not installed"
> ImportError: The _imaging C module is not installed
> >>>
> 
> I've installed PIL (95/NT 1.52 compatible version) in C:\Python\PIL and the
> _imaging.dll is installed there, C:\Windows\System and in C:\Python\DLLs.
> I've set the same $PYTHONPATH in my autoexec.bat as in the registry.

what happens if you try to import the _imaging module
from the interpreter prompt:

    >>> import _imaging

> SET
> $PYTHONPATH="C:\Python\Lib\plat-win;C:\Python\Lib;C:\Python\DLLs;C:\Python\L
> ib\lib-tk;c:\Python\PIL"

hmm.  if you're using the standard command shell, I'm
pretty sure you shouldn't use $-signs and quotes in
there...

</F>





More information about the Python-list mailing list