Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem in PIL(Python Imaging Library)

Status
Not open for further replies.

abp

Programmer
Sep 14, 2000
134
FR
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'&quot; 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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top