Randy reed
1 min readJan 31, 2018

--

I get an error when it set’s img

img = plt.imread(f’{PATH}valid/cats/{files[0]}’)

Here’s the error part of the traceback.

/usr/local/lib/python3.6/dist-packages/PIL/TiffImagePlugin.py in <module>() 1813 Image.register_save_all(TiffImageFile.format, _save_all) 1814 -> 1815 Image.register_extensions(TiffImageFile.format, [“.tif”, “.tiff”]) 1816 1817 Image.register_mime(TiffImageFile.format, “image/tiff”) AttributeError: module ‘PIL.Image’ has no attribute ‘register_extensions’

I’ve tried googling the error but can not find a solution. Pillow version 5.0.0.

I tried installing and earlier version of pytorch as suggested above, but no luck. Thought I’d bump this issue.

--

--

Randy reed

Professor of Religion at Appalachian State University interested in the connection between technology and religion.