{"action":"closed","issue":{"url":"https://api.github.com/repos/ekalinin/nodeenv/issues/117","labels_url":"https://api.github.com/repos/ekalinin/nodeenv/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/ekalinin/nodeenv/issues/117/comments","events_url":"https://api.github.com/repos/ekalinin/nodeenv/issues/117/events","html_url":"https://github.com/ekalinin/nodeenv/issues/117","id":60716930,"number":117,"title":"nodeenv --list is raising TypeError","user":{"login":"syndbg","id":6031925,"avatar_url":"https://avatars.githubusercontent.com/u/6031925?v=3","gravatar_id":"","url":"https://api.github.com/users/syndbg","html_url":"https://github.com/syndbg","followers_url":"https://api.github.com/users/syndbg/followers","following_url":"https://api.github.com/users/syndbg/following{/other_user}","gists_url":"https://api.github.com/users/syndbg/gists{/gist_id}","starred_url":"https://api.github.com/users/syndbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syndbg/subscriptions","organizations_url":"https://api.github.com/users/syndbg/orgs","repos_url":"https://api.github.com/users/syndbg/repos","events_url":"https://api.github.com/users/syndbg/events{/privacy}","received_events_url":"https://api.github.com/users/syndbg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-11T19:38:48Z","updated_at":"2015-03-13T08:07:20Z","closed_at":"2015-03-13T08:07:20Z","body":"When installed globally with `sudo pip install nodeenv`, `nodeenv --list` raises an exception.\r\n\r\nThis is due to `pkg_resources.parse_version` method having different return types in older versions. \r\n\r\n![nodeenv_bug](https://cloud.githubusercontent.com/assets/6031925/6599860/d253a2b0-c814-11e4-94d6-9a9d79cdf27c.png)\r\n\r\n\r\nPossible hotfix solutions are:\r\n* write a helper function to parse strings,\r\n* write our own Version type :-1: \r\n\r\nBut atm I'm working on finding out which version of `setuptools` introduced the newer (currently used in master) Version type that parses version strings and rely on it if `setuptools` is >= that version.\r\n\r\nI'll combine that with one of two approaches:\r\n* the raw string representation we get with regex pattern. However ascending sorting will be `0.1.0, 0.10.0, 0.9.0`,\r\n*  the before mentioned helper function\r\n\r\n\r\nI think broken ascending sort is acceptable as a hotfix.\r\n\r\nPR will be submitted soon-ish. :8ball: "}}