{"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":6,"created_at":"2015-05-25T13:22:41Z","updated_at":"2015-05-27T11:30:23Z","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\n    root.mainloop()\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/105878290","html_url":"https://github.com/python-pillow/Pillow/issues/1241#issuecomment-105878290","issue_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1241","id":105878290,"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},"created_at":"2015-05-27T11:30:23Z","updated_at":"2015-05-27T11:30:23Z","body":"Hi radarhere, thanks for your post. I'm very new to all of this and to be frank, it's quite overwhelming. I actually use MacPorts, (I think) but then I saw a post somewhere saying you should use Homebrew, so I installed that, then installed Pillow via Homebrew. I suspect now, since reading your post, that's the problem. Everything else was installed using MacPorts and then I installed Pillow with Homebrew. Problem is, as you pointed out, it's very fiddly to work the problem out. I'm thinking now I should probably uninstall Homebrew and find a way to install Pillow through MacPorts. sudo pip install Pillow? "}}