Python Imaging Library - Install Question

Colleen & Brian Smith greybria at direct.ca
Tue Dec 14 22:48:41 EST 1999


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.

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

What am I overlooking?

Brian Smith
greybria at direct.ca
http://mypage.direct.ca/g/greybria





More information about the Python-list mailing list