{"action":"created","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1825","repository_url":"https://api.github.com/repos/pyinstaller/pyinstaller","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1825/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1825/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1825/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1825","id":133838445,"number":1825,"title":"Segfault on wx \"hello world\"","user":{"login":"terhorst","id":18204,"avatar_url":"https://avatars.githubusercontent.com/u/18204?v=3","gravatar_id":"","url":"https://api.github.com/users/terhorst","html_url":"https://github.com/terhorst","followers_url":"https://api.github.com/users/terhorst/followers","following_url":"https://api.github.com/users/terhorst/following{/other_user}","gists_url":"https://api.github.com/users/terhorst/gists{/gist_id}","starred_url":"https://api.github.com/users/terhorst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terhorst/subscriptions","organizations_url":"https://api.github.com/users/terhorst/orgs","repos_url":"https://api.github.com/users/terhorst/repos","events_url":"https://api.github.com/users/terhorst/events{/privacy}","received_events_url":"https://api.github.com/users/terhorst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/OS%20X","name":"OS X","color":"d4c5f9"},{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/labels/support","name":"support","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-15T23:01:20Z","updated_at":"2016-02-18T15:20:41Z","closed_at":null,"body":"On 3.1.1, this simple \"hello world\" script will segfault when run through `pyinstaller --onefile -w hello.py`:\r\n```\r\n#!/usr/bin/env python\r\nimport wx\r\n\r\napp = wx.App(False)  # Create a new app, don't redirect stdout/stderr to a window.\r\nframe = wx.Frame(None, wx.ID_ANY, \"Hello World\") # A Frame is a top-level window.\r\nframe.Show(True)     # Show the frame.\r\napp.MainLoop()\r\n```\r\nPreceding the segfault are a bunch of errors that look like:\r\n```\r\nobjc[26024]: Class wxOSXStatusItemTarget is implemented in both /var/folders/v_/4yqlxmpn18jbhpdqcl42z97c0000gn/T/_MEI2FP0d2/libwx_osx_cocoau_adv-3.0.0.2.0.dylib and /var/folders/v_/4yqlxmpn18jbhpdqcl42z97c0000gn/T/_MEI2FP0d2/libwx_osx_cocoau_adv-3.0.dylib. One of the two will be used. Which one is undefined.\r\n```\r\n\r\nI suspect this might have something to do with #1750. I'm on OS X 10.11.3 with homebrew-built versions of Python, wxpython and wxmac."},"comment":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/comments/185770718","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1825#issuecomment-185770718","issue_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1825","id":185770718,"user":{"login":"htgoebel","id":784161,"avatar_url":"https://avatars.githubusercontent.com/u/784161?v=3","gravatar_id":"","url":"https://api.github.com/users/htgoebel","html_url":"https://github.com/htgoebel","followers_url":"https://api.github.com/users/htgoebel/followers","following_url":"https://api.github.com/users/htgoebel/following{/other_user}","gists_url":"https://api.github.com/users/htgoebel/gists{/gist_id}","starred_url":"https://api.github.com/users/htgoebel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htgoebel/subscriptions","organizations_url":"https://api.github.com/users/htgoebel/orgs","repos_url":"https://api.github.com/users/htgoebel/repos","events_url":"https://api.github.com/users/htgoebel/events{/privacy}","received_events_url":"https://api.github.com/users/htgoebel/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T15:20:41Z","updated_at":"2016-02-18T15:20:41Z","body":"The proper solution - and this is what we should implement - is to detect the symlink and resolve it. So the question is (see my prior comment): Why there are different versions of this lib included?\r\n\r\nSince I do not have OS X here, I need your assistance for tracking this down and testing the proposed solution. You may step through `Analysis.assemble()` in `PyInstaller/building/build_main.py` to narrow down where these libs are added.\r\n\r\nI assume, `libwx_osx_cocoau_adv-3.0.0.2.0.dylib` symlinks to` libwx_osx_cocoau_adv-3.0.dylib`. Correct?"}}