Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"AttributeError: can't set attribute" #11

Open
mixuala opened this issue Feb 6, 2020 · 2 comments
Open

"AttributeError: can't set attribute" #11

mixuala opened this issue Feb 6, 2020 · 2 comments

Comments

@mixuala
Copy link

mixuala commented Feb 6, 2020

This error (in Colaboratory) is fixed by upgrading the Pillow package, skip Pillow==4.1.1

/usr/local/lib/python3.6/dist-packages/PIL/JpegImagePlugin.py in SOF(self, marker)
    144     n = i16(self.fp.read(2))-2
    145     s = ImageFile._safe_read(self.fp, n)
--> 146     self.size = i16(s[3:]), i16(s[1:])
    147 
    148     self.bits = i8(s[0])
@osmarcedron
Copy link

I think you have to upgrade Pillow, for getting rid of this error. Nevertheless, I got other one not maybe related to this one, that points out some problems with the image you are trying to load (first time this ever happened to me)

@rrmina
Copy link
Owner

rrmina commented Mar 6, 2020

Hi @mixuala!

Seems like there's a problem with the earlier versions of Pillow. As @osmarcedron suggested, this problem could be solved by upgrading your Pillow to its latest version (i.e. pip install Pillow -U).

I will change all the notebooks to reflect this. Thanks for reporting this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants