PIL Q: Python interpreter cannot find _imaging.pyd

Svein Brekke svbrk at start.no
Fri Feb 1 13:02:21 EST 2002


I have installed python 2.2 precompiled for Windows2000 Professional
and the PIL version 1.1.2 for python 2.2 (also precompiled).

Then I got this strange message, altough I _think_ my environment
variables are correct. Can anybody explain what is happening?

Environment:
  PATH = c:/usr/python;c:/usr/python/DLLs;c:/usr/python/PIL
  PYTHONPATH = c:/usr/python;c:/usr/python/PIL/PIL

In the python shell:
>>> import Image
>>> i = Image.open('p:/tmp/testx.jpg')
>>> i.resize((0,10),0)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "c:\usr\python\pil\pil\Image.py", line 661, in resize
    self.load()
  File "c:\usr\python\pil\pil\ImageFile.py", line 126, in load
    self.load_prepare()
  File "c:\usr\python\pil\pil\ImageFile.py", line 180, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "c:\usr\python\pil\pil\Image.py", line 37, in __getattr__
    raise ImportError, "The _imaging C module is not installed"
ImportError: The _imaging C module is not installed


I am thankful for any help :-)
Svein Brekke



More information about the Python-list mailing list