[Image-SIG] [PIL 1.1.6] bug with python 2.51 but not with python 2.44
Fredrik Lundh
fredrik at pythonware.com
Thu Dec 27 11:19:07 CET 2007
junk at ysengrin.com wrote:
> the same code runs fine in python 2.44 but fails with python 2.51
>
> File "/usr/local/lib/python2.5/site-packages/PIL/Image.py", line 783, in filter
> filter = filter()
> AttributeError: Kernel instance has no __call__ method
>
> contact me if you need more info
are you perhaps importing things both from "PIL" and from the path
itself? (e.g. mixing "from PIL import Image" with "import Image"?).
does PIL's installation directory appear in sys.path?
if you cannot make this work, try changing
if not isinstance(filter, Filter):
filter = filter()
to
if type(filter) is type(Filter):
filter = filter()
in Image.py.
</F>
More information about the Image-SIG
mailing list