Closed dreboli closed 9 years ago
Similar with this png : http://logos.wikia.com/wiki/File:Logo_rolling_stones.png
IOError: decoder zip not available
This looks like it's system specific and is going to be down to whether libjpeg-dev or other relevant image libraries were present on the system when PIL (or pillow) was installed and compiled.
Could you try installing jpg libraries to the system using apt-get install libjpeg-dev
and then reinstall PIL or pillow with pip install -I pil or pip install -I pillow
I guess we need to be making sure those dependencies are present on the system before installing PIL or pillow
Let me know if the above fixes your jpg issue
I had PIL installed (an error msg suggested to install this package when image upload failed) Version is 1.1.7.
pip freeze | grep PIL
Warning: cannot find svn location for distribute==0.6.24dev-r0
PIL==1.1.7
I tried apt-get install libjpeg-dev
but still had the same problem, had to install pillow
too to solve the issue.
Pillow compiles itself when you install it. It compiles in support for various things (like png, jpg, zip support) depending on what system libs are installed at that time. If you try to install pillow without the libraries already installed then Pillow will be built without them.
I should probably switch wholesale to Pillow away from PIL anyway
Ah I see now, thanks. I should mention that I'm not too familiar with coding or linux in general and my english is not too good either so these should be taken into account when reading my comments.
Hey man, you're comments are crystal clear and really appreciated so thankyou!
I'm going to reopen this though becasue it needs to be fixed (it really is a bug)
Reopening - fix by having installer make sure image libraries are present before installing/reinstalling Pillow
libjpeg and zlib1 are now stated in the pre-reqs - as long as these are present before PIP/pillow is installed (assuming PIP is used) then this problem should not be present.
Binaries are now built on systems with these requirements already installed.
Closing as fixed
Upon uploading a .jpg