{"action":"closed","issue":{"url":"https://api.github.com/repos/macvim-dev/macvim/issues/155","labels_url":"https://api.github.com/repos/macvim-dev/macvim/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/macvim-dev/macvim/issues/155/comments","events_url":"https://api.github.com/repos/macvim-dev/macvim/issues/155/events","html_url":"https://github.com/macvim-dev/macvim/issues/155","id":118273789,"number":155,"title":"macvim/python loads the wrong Python libraries","user":{"login":"xoolive","id":1360812,"avatar_url":"https://avatars.githubusercontent.com/u/1360812?v=3","gravatar_id":"","url":"https://api.github.com/users/xoolive","html_url":"https://github.com/xoolive","followers_url":"https://api.github.com/users/xoolive/followers","following_url":"https://api.github.com/users/xoolive/following{/other_user}","gists_url":"https://api.github.com/users/xoolive/gists{/gist_id}","starred_url":"https://api.github.com/users/xoolive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xoolive/subscriptions","organizations_url":"https://api.github.com/users/xoolive/orgs","repos_url":"https://api.github.com/users/xoolive/repos","events_url":"https://api.github.com/users/xoolive/events{/privacy}","received_events_url":"https://api.github.com/users/xoolive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-22T16:40:59Z","updated_at":"2015-11-22T20:43:42Z","closed_at":"2015-11-22T20:43:42Z","body":"This ticket is probably related to Homebrew/homebrew issues #26426,  #17908, #20075, #20392.\r\nI tried the following with vim 7.4 (brew version) and macvim release 83.\r\n\r\n### With vim\r\n```\r\n:!which python\r\n/usr/local/bin/python\r\n:py import itertools\r\n:py import os; print os.__file__\r\n/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc\r\n```\r\n\r\n### With macvim\r\n\r\n```\r\n:!which python\r\n/usr/local/bin/python\r\n:py import itertools\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\nImportError: No module named itertools\r\n:py import os; print os.__file__\r\n/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc\r\n```\r\n\r\n### Workarounds\r\n\r\n`brew unlink python` but that is not what I would call a fix.  \r\nAlso, when I launch macvim from a virtualenv, things work ok!"}}