-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: 'NoneType' object has no attribute 'read' #4518
Comments
I'll look into this, I think the issue is |
Versions greater than 7.0.0 have the following issues - python-pillow/Pillow#4518 - python-pillow/Pillow#4509
We've merged a fix for this (#4528). Before we release, it would be helpful if people could run their test suites with the |
I just pip installed master and run the given example (and my local test suite), and everything is working. Thanks! |
I have the same issue, could someone tell me how I can get it fixed please? I bumped into this problem when using scikit-image (in a line with
|
Hi @aderchox. Here are three options
|
Hmm, option # 3 above worked for me, but I had to leave this in the plugin file: @property
def n_frames(self):
if self._n_frames is None:
return 1
return self._n_frames I did delete this: @property
def is_animated(self):
return self._n_frames is not None and self._n_frames > 1 |
Pillow 7.1.2 has now been released with the fix for this. |
python-pillow/Pillow#4518 has been fixed and released in Pillow 7.1.2 https://pillow.readthedocs.io/en/stable/releasenotes/7.1.2.html
Excellent! When will it be up on conda forge? |
We don't maintain the conda forge package, but see conda-forge/pillow-feedstock#78. |
try ti upgrade Pillow apt update pip3 install pillow --global-option="build_ext" --global-option="--enable-zlib" --global-option="--enable-jpeg" --global-option="--enable-tiff" --global-option="--enable-freetype" --global-option="--enable-webp" --global-option="--enable-webpmux" --global-option="--enable-jpeg2000" |
The base image includes Pillow 7.1.0 which has a known issue: python-pillow/Pillow#4518 This is causing the skimage test to fail. BUG=160263325
Previous version had a problem with scikit-image (python-pillow/Pillow#4518)
What did you do?
Following on from #4509 after the 7.1.0 release, we have a new issue that cropped up opening a png from scikit-image.
What did you expect to happen?
Not error.
What actually happened?
It errored.
What are your OS, Python and Pillow versions?
The code should just be loading a scikit-image PNG data:
The error message is:
Since this is scikit image loading one of their PNGs, I wonder if it's actually a bug there.
The text was updated successfully, but these errors were encountered: