PIL _imaging

Cousin Stanley CousinStanley at HotMail.Com
Tue Jun 11 19:29:18 EDT 2002


Greetings PythonIstas ... 

I'm a dinosaur-age programmer trying to get started 
using Python 2.2.1 under Win98 1st ed ... 

I've installed the  wxPython  and  PMW  packages
and the  samples/demos  from both seem to run OK ... 

However, I'm having some problems trying to run demos
from the Python Imaging Library ... 

  python Samples/viewer.py ButtonD.jpg

  Leads to the bottom-line on the trace below
    ImportError: The _imaging C module is not installed ...

  There are 2 files in K:\Python\Lib\PIL\DLLs
  but apparently these are not the ones that are needed ...

    _imaging.pyd
    _imagingtk.pyd 


PYTHONPATH is set in the  autoexec.bat  file
  set PYTHONPATH=K:\Python\Lib\PIL
  set PYTHONPATH=%PYTHONPATH%;K:\Python\Lib\PIL\DLLs
  set PYTHONPATH=%PYTHONPATH%;K:\Python\Lib\PIL\PIL
  set PYTHONPATH=%PYTHONPATH%;K:\Python\Lib\PIL\Samples 

Have I blown the set_Up / search_Rules 
or do I need to look for an additional module
to install ???

Cousin Stanley

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

< K:\Python\Lib\PIL >
Tue 06-11-2002 15:24:35.35 > 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\Lib\PIL\PIL\ImageTk.py", line 86, in __init__
    self.paste(image)
  File "K:\Python\Lib\PIL\PIL\ImageTk.py", line 108, in paste
    im.load()
  File "K:\Python\Lib\PIL\PIL\ImageFile.py", line 126, in load
    self.load_prepare()
  File "K:\Python\Lib\PIL\PIL\ImageFile.py", line 180, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "K:\Python\Lib\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