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

Image Upload Error on Ubuntu 14 virtual environment running Python 2.7.6 #42

Open
mainakibui opened this issue Aug 14, 2015 · 5 comments
Labels

Comments

@mainakibui
Copy link

I have tried uninstalling and reinstalling PIL to no avail. This error occurs when I try to upload a users image from the frontend

http://imgur.com/t65VfQW

@mainakibui mainakibui changed the title Error on Ununtu 14 virtual environment running Python 2.7.6 Image Upload Error on Ubuntu 14 virtual environment running Python 2.7.6 Aug 14, 2015
@arocks
Copy link
Owner

arocks commented Aug 14, 2015

This looks similar to this issue mentioned in the FAQ:
http://django-edge.readthedocs.org/en/latest/FAQ/#why-do-i-keep-getting-oserror-decoder-zip-not-available-errors

On Fri, Aug 14, 2015 at 5:38 PM, @mainakibui [email protected]
wrote:

I have tried uninstalling and reinstalling PIL to no avail

http://imgur.com/t65VfQW


Reply to this email directly or view it on GitHub
#42.

@mainakibui
Copy link
Author

Tried that... Nothing loads after attempting an image upload.

screenshot from 2015-08-14 03 41 57

@mainakibui
Copy link
Author

I have tried this also without luck

pip uninstall Pillow && pip uninstall PIL
pip install PIL --allow-external PIL --allow-unverified PIL
find /usr/lib -name libjpeg.so
sudo ln -s /usr/lib/libjpeg.so /usr/lib/
python manage.pyunserver 0.0.0.0:8000 #quit and restart server

@arocks arocks added the bug label Dec 13, 2015
@arocks
Copy link
Owner

arocks commented Dec 13, 2015

Hi @mainakibui , Did you get this to work?

@pesaply
Copy link

pesaply commented Feb 3, 2016

Hello Got Same Error Here and this is the log

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/core/handlers/wsgi.py", line 177, in call
response = self.get_response(request)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/core/handlers/base.py", line 230, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/core/handlers/base.py", line 289, in handle_uncaught_exception
return debug.technical_500_response(request, _exc_info)
File "/root/opestech/src/opestech/wsgi.py", line 24, in null_technical_500_response
six.reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/core/handlers/base.py", line 174, in get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/core/handlers/base.py", line 172, in get_response
response = response.render()
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/response.py", line 160, in render
self.content = self.rendered_content
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/response.py", line 137, in rendered_content
content = template.render(context, self._request)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/backends/django.py", line 95, in render
return self.template.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 206, in render
return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/test/utils.py", line 92, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/loader_tags.py", line 173, in render
return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/test/utils.py", line 92, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/loader_tags.py", line 69, in render
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/loader_tags.py", line 69, in render
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/loader_tags.py", line 69, in render
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/defaulttags.py", line 326, in render
return nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 1039, in render
output = self.filter_expression.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 705, in resolve
obj = self.var.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 846, in resolve
value = self._resolve_lookup(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 909, in _resolve_lookup
current = current()
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/loader_tags.py", line 83, in super
return mark_safe(self.render(self.context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/loader_tags.py", line 69, in render
result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/defaulttags.py", line 326, in render
return nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 988, in render
bit = node.render_annotated(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.9.1-py2.7.egg/django/template/base.py", line 955, in render_annotated
return self.render(context)
File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/templatetags/thumbnail.py", line 116, in render
thumbnail = get_thumbnailer(source).get_thumbnail(opts)
File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/files.py", line 517, in get_thumbnail
silent_template_exception=silent_template_exception)
File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/files.py", line 385, in generate_thumbnail
fail_silently=silent_template_exception)
File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/engine.py", line 112, in generate_source_image
image = generator(source, *_processor_options)
File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/source_generators.py", line 41, in pil_image
image.load()
File "/usr/local/lib/python2.7/dist-packages/PIL/ImageFile.py", line 203, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 420, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available

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

No branches or pull requests

3 participants