{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/1397","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/1397/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/1397/events","html_url":"https://github.com/torchbox/wagtail/issues/1397","id":87436305,"number":1397,"title":"Error Uploading an Image","user":{"login":"chadsaun","id":381024,"avatar_url":"https://avatars.githubusercontent.com/u/381024?v=3","gravatar_id":"","url":"https://api.github.com/users/chadsaun","html_url":"https://github.com/chadsaun","followers_url":"https://api.github.com/users/chadsaun/followers","following_url":"https://api.github.com/users/chadsaun/following{/other_user}","gists_url":"https://api.github.com/users/chadsaun/gists{/gist_id}","starred_url":"https://api.github.com/users/chadsaun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadsaun/subscriptions","organizations_url":"https://api.github.com/users/chadsaun/orgs","repos_url":"https://api.github.com/users/chadsaun/repos","events_url":"https://api.github.com/users/chadsaun/events{/privacy}","received_events_url":"https://api.github.com/users/chadsaun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/torchbox/wagtail/labels/Bug","name":"Bug","color":"ff0000"},{"url":"https://api.github.com/repos/torchbox/wagtail/labels/Needs%20info","name":"Needs info","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/torchbox/wagtail/milestones/16","html_url":"https://github.com/torchbox/wagtail/milestones/0.8.8","labels_url":"https://api.github.com/repos/torchbox/wagtail/milestones/16/labels","id":1099893,"number":16,"title":"0.8.8","description":"","creator":{"login":"kaedroho","id":1093808,"avatar_url":"https://avatars.githubusercontent.com/u/1093808?v=3","gravatar_id":"","url":"https://api.github.com/users/kaedroho","html_url":"https://github.com/kaedroho","followers_url":"https://api.github.com/users/kaedroho/followers","following_url":"https://api.github.com/users/kaedroho/following{/other_user}","gists_url":"https://api.github.com/users/kaedroho/gists{/gist_id}","starred_url":"https://api.github.com/users/kaedroho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaedroho/subscriptions","organizations_url":"https://api.github.com/users/kaedroho/orgs","repos_url":"https://api.github.com/users/kaedroho/repos","events_url":"https://api.github.com/users/kaedroho/events{/privacy}","received_events_url":"https://api.github.com/users/kaedroho/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":12,"state":"open","created_at":"2015-05-07T09:11:19Z","updated_at":"2015-06-16T15:11:19Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-06-11T18:16:32Z","updated_at":"2015-06-16T16:41:09Z","closed_at":null,"body":"When I click the \"Upload\" button to upload an image from a page, I get `ValueError: The file cannot be reopened.`\r\n\r\nHere is the full stack trace:\r\n\r\n    [11/Jun/2015 13:05:29] \"POST /cms/images/chooser/upload/ HTTP/1.1\" 500 23947\r\n    Internal Server Error: /cms/images/chooser/upload/\r\n    Traceback (most recent call last):\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/django/core/handlers/base.py\", line 111, in get_response\r\n        response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/django/contrib/auth/decorators.py\", line 21, in _wrapped_view\r\n        return view_func(request, *args, **kwargs)\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/wagtail/wagtailimages/views/chooser.py\", line 141, in     chooser_upload\r\n        {'image_json': get_image_json(image)}\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/wagtail/wagtailimages/views/chooser.py\", line 22, in     get_image_json\r\n        preview_image = image.get_rendition('max-130x100')\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/wagtail/wagtailimages/models.py\", line 196, in get_rendition\r\n        generated_image = filter.process_image(image_file, backend_name=backend_name, focal_point=self.get_focal_point())\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/wagtail/wagtailimages/models.py\", line 371, in process_image\r\n        input_file.open('rb')\r\n      File \"/Users/john/.virtualenvs/website/lib/python2.7/site-packages/django/core/files/base.py\", line 128, in open\r\n        raise ValueError(\"The file cannot be reopened.\")\r\n    ValueError: The file cannot be reopened."},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/112493021","html_url":"https://github.com/torchbox/wagtail/issues/1397#issuecomment-112493021","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/1397","id":112493021,"user":{"login":"chadsaun","id":381024,"avatar_url":"https://avatars.githubusercontent.com/u/381024?v=3","gravatar_id":"","url":"https://api.github.com/users/chadsaun","html_url":"https://github.com/chadsaun","followers_url":"https://api.github.com/users/chadsaun/followers","following_url":"https://api.github.com/users/chadsaun/following{/other_user}","gists_url":"https://api.github.com/users/chadsaun/gists{/gist_id}","starred_url":"https://api.github.com/users/chadsaun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadsaun/subscriptions","organizations_url":"https://api.github.com/users/chadsaun/orgs","repos_url":"https://api.github.com/users/chadsaun/repos","events_url":"https://api.github.com/users/chadsaun/events{/privacy}","received_events_url":"https://api.github.com/users/chadsaun/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T16:41:09Z","updated_at":"2015-06-16T16:41:09Z","body":"Here's my `pip freeze`\r\n\r\n```\r\nBabel==1.3\r\nBabelDjango==0.2.2\r\nbeautifulsoup4==4.3.2\r\nboto==2.38.0\r\nbraintree==3.12.0\r\ncairocffi==0.6\r\nCairoSVG==1.0.13\r\ncffi==0.9.2\r\nclick==4.0\r\ncryptography==0.8.2\r\nDjango==1.7.8\r\ndjango-appconf==1.0.1\r\ndjango-compressor==1.5\r\ndjango-datetime-widget==0.9.3\r\ndjango-debug-toolbar==1.3.0\r\ndjango-images==0.4.1\r\ndjango-libsass==0.3\r\ndjango-livefield==2.1.0\r\ndjango-model-utils==2.0.3\r\ndjango-modelcluster==0.6.2\r\ndjango-mptt==0.7.4\r\ndjango-offsite-storage==0.0.5\r\ndjango-overextends==0.3.2\r\ndjango-payments==0.6.5\r\ndjango-prices==0.3.4\r\ndjango-recaptcha==1.0.3\r\ndjango-selectable==0.8.0\r\ndjango-taggit==0.12.3\r\ndjango-treebeard==2.0\r\ndjangorestframework==3.0.3\r\ndjrill==1.3.0\r\ndocopt==0.4.0\r\nenum34==1.0.4\r\nfake-factory==0.4.2\r\nfeedparser==5.2.0\r\ngoogle-measurement-protocol==0.1.3\r\nhtml5lib==0.999\r\njsonfield==1.0.0\r\nlibsass==0.8.2\r\nmailchimp==2.0.9\r\nMarkdown==2.5.2\r\nmysqlclient==1.3.6\r\nndg-httpsclient==0.3.3\r\nPillow==2.8.2\r\nprices==0.5.1\r\npsycopg2==2.5.4\r\npyasn1==0.1.7\r\npycparser==2.13\r\npycrypto==2.6.1\r\nPyJWT==1.0.1\r\npyOpenSSL==0.15.1\r\npython-dotenv==0.1.2\r\npytz==2015.4\r\nreportlab==2.7\r\nrequests==2.7.0\r\nsaleor==0.1.0a0\r\nsatchless==1.1.3\r\nsix==1.9.0\r\nSouth==1.0.2\r\nsphinx-me==0.3\r\nsqlparse==0.1.15\r\nstripe==1.22.1\r\nsuds-jurko==0.6\r\nunicodecsv==0.13.0\r\nUnidecode==0.4.18\r\nUnipath==1.0\r\nwagtail==0.8.7\r\nXlsxWriter==0.7.2\r\n```"}}