[Image-SIG] Unable to run PIL

Julien.Courteau@consulting.fujitsu.com Julien.Courteau@consulting.fujitsu.com
Mon, 6 May 2002 11:09:12 -0400


With the version 1.1.3 of PIL and under Windows 95 I get the following when
I start my application:

Exception exceptions.AttributeError: "BitmapImage instance has no attribute
'_BitmapImage__photo'" in <bound method BitmapImage.__del__ of
<ImageTk.BitmapImage instance at 0x013D4DD0>> ignored
Traceback (most recent call last):
  File "C:\pyprg\Chess_viewer.py", line 1060, in ?
    chess_viewer_app = Chess_viewer()
  File "C:\pyprg\Chess_viewer.py", line 40, in __init__
    self.load_bitmaps()
  File "C:\pyprg\Chess_viewer.py", line 54, in load_bitmaps
    self.chess_bmp[piece] = (ImageTk.BitmapImage(file=BITMAP_DIRECTORY +
prefix + str(size) + 's.bmp'), \
  File "c:\pyprg\Pil\ImageTk.py", line 159, in __init__
    kw["data"] = image.tobitmap()
  File "c:\pyprg\Pil\Image.py", line 353, in tobitmap
    self.load()
  File "c:\pyprg\Pil\ImageFile.py", line 125, in load
    self.load_prepare()
  File "c:\pyprg\Pil\ImageFile.py", line 175, in load_prepare
    self.im = Image.core.new(self.mode, self.size)
  File "c:\pyprg\Pil\Image.py", line 43, in __getattr__
    raise ImportError, "The _imaging C module is not installed"
ImportError: The _imaging C module is not installed

Before I deplaced the PIL library on my disk I had no problem with PIL; I
worked hard to correctly set the PYTHONPATH, but  in vain.
Could you please give me a hint?