PIL _imaging

Cousin Stanley CousinStanley at HotMail.Com
Wed Jun 12 11:25:23 EDT 2002


Cousin Markus ... 

Thanks for the reply ... 

Moved the PIL folder up a 2 levels :
  ... From K:\Python\Lib\PIL\PIL 
  ...   To K:\Python\PIL           # contains xxxxx.py modules   

I also copied  PIL.pth : 
  ...  To K:\Python\PIL.pth
  ...  This file contains 3 characters ... PIL 
  ...  as originally shipped with the distribution 

There are copies of the  .pyd  files in :
  ... K:\Python\DLLs\_imaging.pyd
  ... K:\Python\DLLs\_imagingtk.pyd

However, the result is still the same : 
  ... See trace below ...

I tried with and without K:\Python\DLLs 
in the PYTHONPATH variable and without 
PYTHONPATH set at all ...

Cousin Stanley

-----------------------------------------------------------------

< K:\Python\PIL >
Wed 06-12-2002  7:23:51.33 > python Samples/viewer.py ButtonD.jpg
Traceback (most recent call last):
  File "Samples/viewer.py", line 46, in ?
    UI(root, im).pack()
  File "Samples/viewer.py", line 25, in __init__
    self.image = ImageTk.PhotoImage(im)
  File "K:\Python\PIL\PIL\ImageTk.py", line 86, in __init__
    self.paste(image)
  File "K:\Python\PIL\PIL\ImageTk.py", line 108, in paste
    im.load()
  File "K:\Python\PIL\PIL\ImageFile.py", line 126, in load
    self.load_prepare()
  File "K:\Python\PIL\PIL\ImageFile.py", line 180, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "K:\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




More information about the Python-list mailing list