pythonpython-imaging-librarypython-module

AttributeError: property 'mode' of 'JpegImageFile' object has no setter


I'm getting an error:

AttributeError: property 'mode' of 'JpegImageFile' object has no setter

While trying to open an image using the Pillow library.

My code:

from pil import Image as pl
my_img = pl.open(file_name)

What does it mean?


Solution

  • It is about pillow lybrary dependencies.

    It works after a reinstallation.