{"action":"closed","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/2","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/2/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/2/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/2","id":17363223,"number":2,"title":"_sys_version function in platform.py is broken on Windows (python33, 32 bit)","user":{"login":"almarklein","id":3015475,"avatar_url":"https://avatars.githubusercontent.com/u/3015475?v=3","gravatar_id":"","url":"https://api.github.com/users/almarklein","html_url":"https://github.com/almarklein","followers_url":"https://api.github.com/users/almarklein/followers","following_url":"https://api.github.com/users/almarklein/following{/other_user}","gists_url":"https://api.github.com/users/almarklein/gists{/gist_id}","starred_url":"https://api.github.com/users/almarklein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almarklein/subscriptions","organizations_url":"https://api.github.com/users/almarklein/orgs","repos_url":"https://api.github.com/users/almarklein/repos","events_url":"https://api.github.com/users/almarklein/events{/privacy}","received_events_url":"https://api.github.com/users/almarklein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/labels/Windows","name":"Windows","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-07-29T21:02:52Z","updated_at":"2015-02-18T21:13:17Z","closed_at":"2015-02-18T21:13:17Z","body":"Calling platform._sys_version() on Windows raises an exception. Pip uses this function (via platform.python_implementation()) and is therefore broken.\r\n\r\n_sys_version uses a regexp to parse sys.version. The regexp that I see in platform.py is different from the one that I see in a \"normal\" Pythin install (from python.org).\r\n\r\n    _sys_version_parser = re.compile(\r\n        r'([\\w.+]+)\\s*'\r\n        '\\|[^|]*\\|\\s*' # version extra  --> This line seems to have been added\r\n        '\\(#?([^,]+),\\s*([\\w ]+),\\s*([\\w :]+)\\)\\s*'\r\n        '\\[([^\\]]+)\\]?', re.ASCII)\r\n\r\nI suspect that the regexp was changed in order to parse the modified sys.version string that has the \"Continuum Analytics\" text in it. However, on Windows `sys.version` does not have this string (it is the same as in the normal interpreter).\r\n\r\nIf I either change back the regexp, or if I set sys.version to the text \"3.3.2 |Continuum Analytics, Inc.| (default, May 17 2013, 11:33:25) \\n[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)]\", then the bug is gone.\r\n\r\n"}}