Hi
I installed PIL version 2.1 on windows NT machine. When I am trying to run any of the sample programs I get this error.
$python player.py D:/users/anand/docs/docs/*.gif
loading...
Traceback (most recent call last):
File "player.py", line 120, in ?
UI(root, im).pack()
File "player.py", line 51, in __init__
self.image = ImageTk.PhotoImage(im)
File "d:\python21\lib\PIL\ImageTk.py", line 68, in __init__
image.load()
File "d:\python21\lib\PIL\ImageFile.py", line 126, in load
self.load_prepare()
File "d:\python21\lib\PIL\ImageFile.py", line 180, in load_prepare
self.im = Image.core.new(self.mode, self.size)
File "d:\python21\lib\PIL\Image.py", line 37, in __getattr__
raise ImportError, "The _imaging C module is not installed"
ImportError: The _imaging C module is not installed
Exception exceptions.AttributeError: "PhotoImage instance has no
attribute '_Pho
toImage__photo'" in <method PhotoImage.__del__ of PhotoImage instance
at 00D9301
ANy idea where I am making a mistake?
Thanks
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I installed PIL version 2.1 on windows NT machine. When I am trying to run any of the sample programs I get this error.
$python player.py D:/users/anand/docs/docs/*.gif
loading...
Traceback (most recent call last):
File "player.py", line 120, in ?
UI(root, im).pack()
File "player.py", line 51, in __init__
self.image = ImageTk.PhotoImage(im)
File "d:\python21\lib\PIL\ImageTk.py", line 68, in __init__
image.load()
File "d:\python21\lib\PIL\ImageFile.py", line 126, in load
self.load_prepare()
File "d:\python21\lib\PIL\ImageFile.py", line 180, in load_prepare
self.im = Image.core.new(self.mode, self.size)
File "d:\python21\lib\PIL\Image.py", line 37, in __getattr__
raise ImportError, "The _imaging C module is not installed"
ImportError: The _imaging C module is not installed
Exception exceptions.AttributeError: "PhotoImage instance has no
attribute '_Pho
toImage__photo'" in <method PhotoImage.__del__ of PhotoImage instance
at 00D9301
ANy idea where I am making a mistake?
Thanks
Anand ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mail me at abpillai@excite.com if you want additional help. I dont promise that I can solve your problem, but I will try my best.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~