Announcement

Collapse
No announcement yet.

using python imaging library with kbuntu

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    using python imaging library with kbuntu

    I just installed Kubuntu 6.06.1 on my desktop. It really looks great and I had no problems getting on the internet and setting up a printer. I was pleased to see that Python and Tkinter are included. I decided to try a Python program that uses Tkinter. The program included the line:

    from PIL import Image, ImageTk

    I got the response:

    ImportError: cannot import name ImageTk.

    The Python imaging library is located in:

    /usr/lib/python2.4/site-packages/PIL.

    There's Image.py and Image.pyc there, and also ImageStat.py and ImageStat.pyc, but no ImageTk.py.

    Is there some way to update Kubuntu to include the ImageTk files? I'm just an amateur programmer, maybe in a little over my head.

    I know this is a little abstruse, but the program works under WindowsXL, so I figure it ought to work under Kubuntu.

    Even if I don't get this solved, I'll keep using Kubuntu. If I do get it solved, I'll be really impressed.

    jto

    9-6-07 addendum: the program also works under SimplyMEPIS-32 6.5. - just to add a little incentive to those Kubuntu loyalists out there.

Working...
X