{"action":"created","issue":{"url":"https://api.github.com/repos/bfirsh/needle/issues/38","labels_url":"https://api.github.com/repos/bfirsh/needle/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/bfirsh/needle/issues/38/comments","events_url":"https://api.github.com/repos/bfirsh/needle/issues/38/events","html_url":"https://github.com/bfirsh/needle/issues/38","id":54586987,"number":38,"title":"PerceptualDiff and Python 3.4.1 exception","user":{"login":"denialofself","id":9951123,"avatar_url":"https://avatars.githubusercontent.com/u/9951123?v=3","gravatar_id":"","url":"https://api.github.com/users/denialofself","html_url":"https://github.com/denialofself","followers_url":"https://api.github.com/users/denialofself/followers","following_url":"https://api.github.com/users/denialofself/following{/other_user}","gists_url":"https://api.github.com/users/denialofself/gists{/gist_id}","starred_url":"https://api.github.com/users/denialofself/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denialofself/subscriptions","organizations_url":"https://api.github.com/users/denialofself/orgs","repos_url":"https://api.github.com/users/denialofself/repos","events_url":"https://api.github.com/users/denialofself/events{/privacy}","received_events_url":"https://api.github.com/users/denialofself/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T15:24:35Z","updated_at":"2015-01-16T17:43:57Z","closed_at":null,"body":"Have some prototype tests written using Needle and Python 3.4.1. When the tests run with the default image comparison setting they run fine. When I added PerceptualDiff to the tests, an ugly exception gets thrown coming out of PIL. \r\n\r\nTraceback (most recent call last):\r\n  File \"D:\\Temp\\TestDev\\Needle_Tests_Workflow\\Needle_Tests_Workflow\\Needle_Tests_Workflow.py\", line 42, in test_loginPage\r\n    self.assertScreenshot('body', 'body')\r\n  File \"D:\\Python34\\lib\\site-packages\\needle\\cases.py\", line 128, in assertScreenshot\r\n    pass\r\n  File \"D:\\Python34\\lib\\contextlib.py\", line 66, in __exit__\r\n    next(self.gen)\r\n  File \"D:\\Python34\\lib\\site-packages\\needle\\cases.py\", line 198, in compareScreenshot\r\n    self.engine.assertSameFiles(output_file, baseline_file, threshold)\r\n  File \"D:\\Python34\\lib\\site-packages\\needle\\engines\\perceptualdiff_engine.py\", line 16, in assertSameFiles\r\n    width, height = Image.open(open(output_file)).size\r\n  File \"D:\\Python34\\lib\\site-packages\\PIL\\Image.py\", line 2255, in open\r\n    prefix = fp.read(16)\r\n  File \"D:\\Python34\\lib\\encodings\\cp1252.py\", line 23, in decode\r\n    return codecs.charmap_decode(input,self.errors,decoding_table)[0]\r\nnose.proxy.UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 49: character maps to <undefined>\r\n"},"comment":{"url":"https://api.github.com/repos/bfirsh/needle/issues/comments/70291619","html_url":"https://github.com/bfirsh/needle/issues/38#issuecomment-70291619","issue_url":"https://api.github.com/repos/bfirsh/needle/issues/38","id":70291619,"user":{"login":"jphalip","id":68544,"avatar_url":"https://avatars.githubusercontent.com/u/68544?v=3","gravatar_id":"","url":"https://api.github.com/users/jphalip","html_url":"https://github.com/jphalip","followers_url":"https://api.github.com/users/jphalip/followers","following_url":"https://api.github.com/users/jphalip/following{/other_user}","gists_url":"https://api.github.com/users/jphalip/gists{/gist_id}","starred_url":"https://api.github.com/users/jphalip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jphalip/subscriptions","organizations_url":"https://api.github.com/users/jphalip/orgs","repos_url":"https://api.github.com/users/jphalip/repos","events_url":"https://api.github.com/users/jphalip/events{/privacy}","received_events_url":"https://api.github.com/users/jphalip/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T17:43:57Z","updated_at":"2015-01-16T17:43:57Z","body":"It looks like that fix was pushed after the 0.2.2 release, so we'd need to cut a new release. I could do that in the next couple of days unless someone beats me to it :)"}}