Created
January 14, 2013 17:41
-
-
Save rossbruniges/4531805 to your computer and use it in GitHub Desktop.
Image upload error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/srv/www/source/vendor/lib/python/django/core/handlers/base.py", line 136, in get_response | |
response = response.render() | |
File "/srv/www/source/vendor/lib/python/django/template/response.py", line 104, in render | |
self._set_content(self.rendered_content) | |
File "/srv/www/source/vendor/lib/python/django/template/response.py", line 81, in rendered_content | |
content = template.render(context) | |
File "/srv/www/source/vendor/src/jingo/jingo/__init__.py", line 189, in render | |
return super(Template, self).render(context_dict) | |
File "/usr/lib/python2.6/site-packages/jinja2/environment.py", line 891, in render | |
return self.environment.handle_exception(exc_info, True) | |
File "/srv/www/source/source/base/templates/homepage.html", line 1, in top-level template code | |
{% extends "articles/article_list.html" %} | |
File "/srv/www/source/source/articles/templates/articles/article_list.html", line 1, in top-level template code | |
{% extends "articles/_base_articles.html" %} | |
File "/srv/www/source/source/articles/templates/articles/_base_articles.html", line 2, in top-level template code | |
{% set active_nav = "features" %} | |
File "/srv/www/source/source/base/templates/base.html", line 65, in top-level template code | |
<article class="{% block article_class %}{% endblock %}">{% block content %}{% endblock %}</article> | |
File "/srv/www/source/source/articles/templates/articles/article_list.html", line 9, in block "content" | |
{% include "articles/_article_list_item.html" %} | |
File "/srv/www/source/source/articles/templates/articles/_article_list_item.html", line 4, in top-level template code | |
{% if article.image %}<a href="{{ article.get_absolute_url() }}"><img class="list-thumbnail" src="{{ MEDIA_URL }}{{ thumbnail(article.image, "300x240", crop="center") }}" alt="{{ article.title }}"></a>{% endif %} | |
File "/srv/www/source/source/base/helpers.py", line 40, in thumbnail | |
return get_thumbnail(source, *args, **kwargs) | |
File "/srv/www/source/vendor-local/src/sorl-thumbnail/sorl/thumbnail/shortcuts.py", line 8, in get_thumbnail | |
return default.backend.get_thumbnail(file_, geometry_string, **options) | |
File "/srv/www/source/vendor-local/src/sorl-thumbnail/sorl/thumbnail/base.py", line 61, in get_thumbnail | |
thumbnail) | |
File "/srv/www/source/vendor-local/src/sorl-thumbnail/sorl/thumbnail/base.py", line 87, in _create_thumbnail | |
default.engine.write(image, options, thumbnail) | |
File "/srv/www/source/vendor-local/src/sorl-thumbnail/sorl/thumbnail/engines/base.py", line 74, in write | |
progressive=progressive | |
File "/srv/www/source/vendor-local/src/sorl-thumbnail/sorl/thumbnail/engines/pil_engine.py", line 79, in _get_raw_data | |
image.save(buf, **params) | |
File "/usr/lib64/python2.6/site-packages/PIL/Image.py", line 1439, in save | |
save_handler(self, fp, filename) | |
File "/usr/lib64/python2.6/site-packages/PIL/JpegImagePlugin.py", line 471, in _save | |
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)]) | |
File "/usr/lib64/python2.6/site-packages/PIL/ImageFile.py", line 481, in _save | |
e = Image._getencoder(im.mode, e, a, im.encoderconfig) | |
File "/usr/lib64/python2.6/site-packages/PIL/Image.py", line 399, in _getencoder | |
return apply(encoder, (mode,) + args + extra) | |
TypeError: function takes at most 9 arguments (11 given) | |
<WSGIRequest | |
path:/en-US/, | |
GET:<QueryDict: {}>, | |
POST:<QueryDict: {}>, | |
COOKIES:{}, | |
META:{'CONTENT_LENGTH': '0', | |
'DOCUMENT_ROOT': '/srv/www/source/', | |
'GATEWAY_INTERFACE': 'CGI/1.1', | |
'HTTP_ACCEPT': '*/*', | |
'HTTP_ACCEPT_ENCODING': 'gzip, deflate, compress', | |
'HTTP_CONNECTION': 'Keep-Alive', | |
'HTTP_HOST': 'source.mozillaopennews.org', | |
'HTTP_USER_AGENT': 'NewsBlur Page Fetcher (4 subscribers) - http://www.newsblur.com (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3)', | |
'HTTP_X_CLUSTER_CLIENT_IP': '184.72.214.147', | |
'HTTP_X_FORWARDED_FOR': '184.72.214.147', | |
'PATH_INFO': u'/en-US/', | |
'PATH_TRANSLATED': '/srv/www/source/wsgi/playdoh.wsgi/en-US/', | |
'QUERY_STRING': '', | |
'REMOTE_ADDR': '10.22.112.10', | |
'REMOTE_PORT': '42677', | |
'REQUEST_METHOD': 'GET', | |
'REQUEST_URI': '/en-US/', | |
'SCRIPT_FILENAME': '/srv/www/source/wsgi/playdoh.wsgi', | |
'SCRIPT_NAME': u'', | |
'SERVER_ADDR': '10.22.112.154', | |
'SERVER_ADMIN': '[email protected]', | |
'SERVER_NAME': 'source.mozillaopennews.org', | |
'SERVER_PORT': '80', | |
'SERVER_PROTOCOL': 'HTTP/1.1', | |
'SERVER_SIGNATURE': '<address>Apache/2.2.15 (CentOS) Server at source.mozillaopennews.org Port 80</address>\n', | |
'SERVER_SOFTWARE': 'Apache/2.2.15 (CentOS)', | |
'mod_wsgi.application_group': 'source.openmozillanews.org|', | |
'mod_wsgi.callable_object': 'application', | |
'mod_wsgi.handler_script': '', | |
'mod_wsgi.input_chunked': '0', | |
'mod_wsgi.listener_host': '', | |
'mod_wsgi.listener_port': '80', | |
'mod_wsgi.process_group': 'apache', | |
'mod_wsgi.request_handler': 'wsgi-script', | |
'mod_wsgi.script_reloading': '1', | |
'mod_wsgi.version': (3, 3), | |
'wsgi.errors': <mod_wsgi.Log object at 0x7f570e9454b0>, | |
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f570e41d3f0>, | |
'wsgi.input': <mod_wsgi.Input object at 0x7f570e9458b0>, | |
'wsgi.multiprocess': True, | |
'wsgi.multithread': False, | |
'wsgi.run_once': False, | |
'wsgi.url_scheme': 'http', | |
'wsgi.version': (1, 1)}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment