{"action":"created","issue":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/1241","labels_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1241/labels{/name}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1241/comments","events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1241/events","html_url":"https://github.com/python-pillow/Pillow/issues/1241","id":80535645,"number":1241,"title":"Python 3.4 crashes when opening an image with Pillow and tkinter","user":{"login":"SGB88","id":12596671,"avatar_url":"https://avatars.githubusercontent.com/u/12596671?v=3","gravatar_id":"","url":"https://api.github.com/users/SGB88","html_url":"https://github.com/SGB88","followers_url":"https://api.github.com/users/SGB88/followers","following_url":"https://api.github.com/users/SGB88/following{/other_user}","gists_url":"https://api.github.com/users/SGB88/gists{/gist_id}","starred_url":"https://api.github.com/users/SGB88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SGB88/subscriptions","organizations_url":"https://api.github.com/users/SGB88/orgs","repos_url":"https://api.github.com/users/SGB88/repos","events_url":"https://api.github.com/users/SGB88/events{/privacy}","received_events_url":"https://api.github.com/users/SGB88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-25T13:22:41Z","updated_at":"2015-05-25T14:18:17Z","closed_at":null,"body":" have no idea why but even for the simplest of scripts python crashes and I get the following message:\r\n\"ActivePython 3.4 quit unexpectedly.\" I'm running it on a Mac, OSX 10.7.5.\r\n\r\nThe code I'm running to test it is:\r\n\r\n    from tkinter import * \r\n    from PIL import Image, ImageTk \r\n\r\n    root = Tk()\r\n\r\n    image = Image.open(\"/Users/Name/Desktop/image.png\")\r\n    photo = ImageTk.PhotoImage(image)\r\n    image_label = Label(root, width = 400, height = 400, image = photo)\r\n\r\nI think it's a problem with tkinter rather than PIL because the following code works fine:\r\n\r\n    from PIL import Image, ImageTk \r\n\r\n    image = Image.open(\"/Users/Name/Desktop/image.png\")\r\n    image.show()\r\n\r\nAny guesses at why this could be?"},"comment":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/comments/105241891","html_url":"https://github.com/python-pillow/Pillow/issues/1241#issuecomment-105241891","issue_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1241","id":105241891,"user":{"login":"radarhere","id":3112309,"avatar_url":"https://avatars.githubusercontent.com/u/3112309?v=3","gravatar_id":"","url":"https://api.github.com/users/radarhere","html_url":"https://github.com/radarhere","followers_url":"https://api.github.com/users/radarhere/followers","following_url":"https://api.github.com/users/radarhere/following{/other_user}","gists_url":"https://api.github.com/users/radarhere/gists{/gist_id}","starred_url":"https://api.github.com/users/radarhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radarhere/subscriptions","organizations_url":"https://api.github.com/users/radarhere/orgs","repos_url":"https://api.github.com/users/radarhere/repos","events_url":"https://api.github.com/users/radarhere/events{/privacy}","received_events_url":"https://api.github.com/users/radarhere/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T14:18:17Z","updated_at":"2015-05-25T14:18:17Z","body":"@SGB88 Perhaps this is obvious, perhaps not, but your first script is missing the\r\n`root.mainloop()`\r\nline at the end. This is a necessary part of Tkinter scripts, as it engages Tkinter's runtime. Without it, your Tkinter app dies when the script stops executing. The second script runs fine because you're not creating any Tkinter windows, you're merely passing on the Image instance to another program. Using MacPorts Python 3.4 on OS X 10.10.3 I find no other problems.\r\n\r\n@dossan helping with regards to PIL VERSION at least, I can say that this is happens for everyone, and is exactly as expected and intended. The PIL version is 1.1.17, and the Pillow version is 2.8.1."}}