Re: [Image-SIG] import ICCProfile Error

2010-11-14 Thread Fredrik Lundh
I suspect a buglet in the GAE development server: when reloading the code, it explicitly messes with sys.modules in a way that triggers this error when PIL is invoked the next time (by calling code in a module that no longer exists in sys.modules). It only happens for some PNG files, and only for

Re: [Image-SIG] import ICCProfile Error

2010-11-14 Thread Bharathwaaj Srinivasan
As you suggested, I've commented out the try except code #try: #import ICCProfile #p = ICCProfile.ICCProfile(im.info["icc_profile"]) #name = p.tags.desc.get("ASCII", p.tags.desc.get("Unicode", p.tags.desc.get("Macintosh", p.tags.desc.get("en", {}).get("U

Re: [Image-SIG] import ICCProfile Error

2010-11-14 Thread Fredrik Lundh
On Sun, Nov 14, 2010 at 3:46 PM, Bharathwaaj Srinivasan wrote: > Hi, > > I tried from the command line. Still getting error. Please see the log. > > bhar...@bharath-laptop:~/workspace/webKit$ python2.5 > Python 2.5.5 (r255:77872, NovĀ  3 2010, 13:18:19) > [GCC 4.4.5] on linux2 > Type "help", "copyr

Re: [Image-SIG] import ICCProfile Error

2010-11-14 Thread Bharathwaaj Srinivasan
Hi, I tried from the command line. Still getting error. Please see the log. bhar...@bharath-laptop:~/workspace/webKit$ python2.5 Python 2.5.5 (r255:77872, Nov 3 2010, 13:18:19) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import PIL >>> import