{"action":"created","issue":{"url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/223","labels_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/223/comments","events_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/223/events","html_url":"https://github.com/SmileyChris/easy-thumbnails/issues/223","id":14472916,"number":223,"title":"\"Suspension not allowed here\" error","user":{"login":"epicserve","id":191620,"avatar_url":"https://avatars.githubusercontent.com/u/191620?v=3","gravatar_id":"","url":"https://api.github.com/users/epicserve","html_url":"https://github.com/epicserve","followers_url":"https://api.github.com/users/epicserve/followers","following_url":"https://api.github.com/users/epicserve/following{/other_user}","gists_url":"https://api.github.com/users/epicserve/gists{/gist_id}","starred_url":"https://api.github.com/users/epicserve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epicserve/subscriptions","organizations_url":"https://api.github.com/users/epicserve/orgs","repos_url":"https://api.github.com/users/epicserve/repos","events_url":"https://api.github.com/users/epicserve/events{/privacy}","received_events_url":"https://api.github.com/users/epicserve/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-05-17T21:46:32Z","updated_at":"2015-03-04T20:42:29Z","closed_at":"2013-06-27T23:19:38Z","body":"In my Celery log files I was getting the error, \"Suspension not allowed here\", from PIL when running my generate_thumbnails task. I added the following to my Django settings file which seems to have fixed the issue.\r\n\r\nI'm adding this as an issue so that others might come across the fix or so something can be added into easy-thumbnails so people don't get the error.\r\n\r\n```python\r\n# The following fixes the PIL \"Suspension not allowed here\" error\r\n# 1048576 Bytes = 1 MB\r\nfrom PIL import ImageFile\r\nImageFile.MAXBLOCK = 1048576\r\n```"},"comment":{"url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/comments/77242761","html_url":"https://github.com/SmileyChris/easy-thumbnails/issues/223#issuecomment-77242761","issue_url":"https://api.github.com/repos/SmileyChris/easy-thumbnails/issues/223","id":77242761,"user":{"login":"SmileyChris","id":109951,"avatar_url":"https://avatars.githubusercontent.com/u/109951?v=3","gravatar_id":"","url":"https://api.github.com/users/SmileyChris","html_url":"https://github.com/SmileyChris","followers_url":"https://api.github.com/users/SmileyChris/followers","following_url":"https://api.github.com/users/SmileyChris/following{/other_user}","gists_url":"https://api.github.com/users/SmileyChris/gists{/gist_id}","starred_url":"https://api.github.com/users/SmileyChris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SmileyChris/subscriptions","organizations_url":"https://api.github.com/users/SmileyChris/orgs","repos_url":"https://api.github.com/users/SmileyChris/repos","events_url":"https://api.github.com/users/SmileyChris/events{/privacy}","received_events_url":"https://api.github.com/users/SmileyChris/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T20:42:29Z","updated_at":"2015-03-04T20:42:29Z","body":"I'd suggest nuking from orbit and starting again.\n\nDestroy the virtualenv, ensure you have the latest version of virtualenv\ninstalled, recreate it and install your requirements.\n\nOn Thu, Mar 5, 2015 at 7:49 AM epicserve <notifications@github.com> wrote:\n\n> Having both PIL and Pillow installed has been known to create conflicts,\n> iirc.\n>\n> Having MySQL-python in your list is weird. I'm assuming you didn't\n> accidentally run pip freeze and forget to activate your virtualenv.\n> That's about the only reason I can think it would list MySQL-python, if\n> you didn't install it. Unless, you forgot you installed it or another\n> package had it as one of it's requirements.\n>\n> The easiest thing to do if you are seeing weirdness in your virtualenv, is\n> to nuke it and create a new one. FYI, according to my version of virtualenv\n> (1.11.6) --no-site-packages is DEPRECATED. From the help, \"Retained only\n> for backward compatibility. Not having access to global site-packages is\n> now the default behavior.\"\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/SmileyChris/easy-thumbnails/issues/223#issuecomment-77219671>\n> .\n>\n"}}