{"action":"created","issue":{"url":"https://api.github.com/repos/team-rawbot/rawbot-virtualization/issues/24","labels_url":"https://api.github.com/repos/team-rawbot/rawbot-virtualization/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/team-rawbot/rawbot-virtualization/issues/24/comments","events_url":"https://api.github.com/repos/team-rawbot/rawbot-virtualization/issues/24/events","html_url":"https://github.com/team-rawbot/rawbot-virtualization/issues/24","id":104249898,"number":24,"title":"Provisinonning first with python2 then switching to 3 does not work.","user":{"login":"krtek4","id":963772,"avatar_url":"https://avatars.githubusercontent.com/u/963772?v=3","gravatar_id":"","url":"https://api.github.com/users/krtek4","html_url":"https://github.com/krtek4","followers_url":"https://api.github.com/users/krtek4/followers","following_url":"https://api.github.com/users/krtek4/following{/other_user}","gists_url":"https://api.github.com/users/krtek4/gists{/gist_id}","starred_url":"https://api.github.com/users/krtek4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtek4/subscriptions","organizations_url":"https://api.github.com/users/krtek4/orgs","repos_url":"https://api.github.com/users/krtek4/repos","events_url":"https://api.github.com/users/krtek4/events{/privacy}","received_events_url":"https://api.github.com/users/krtek4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-01T12:01:24Z","updated_at":"2015-09-05T08:21:13Z","closed_at":null,"body":"If you first provision a box with python 2 and later on decide to switch to python 3, you will have the following issue :\r\n\r\n    TASK: [python | make symlink from pip-3.2 to pip] ***************************** \r\n    failed: [default] => {\"failed\": true, \"gid\": 0, \"group\": \"root\", \"mode\": \"0755\", \"owner\": \"root\", \"path\": \"/usr/bin/pip\", \"size\": 281, \"src\": \"/usr/bin/pip-3.2\", \"state\": \"file\", \"uid\": 0}\r\n    msg: refusing to convert between file and link for /usr/bin/pip\r\n\r\nDon't know what the best course of action is in this case, uninstall the other version ? force the symlink ?\r\n\r\n@OdyX @sephii  what do you think ?\r\n"},"comment":{"url":"https://api.github.com/repos/team-rawbot/rawbot-virtualization/issues/comments/137928651","html_url":"https://github.com/team-rawbot/rawbot-virtualization/issues/24#issuecomment-137928651","issue_url":"https://api.github.com/repos/team-rawbot/rawbot-virtualization/issues/24","id":137928651,"user":{"login":"krtek4","id":963772,"avatar_url":"https://avatars.githubusercontent.com/u/963772?v=3","gravatar_id":"","url":"https://api.github.com/users/krtek4","html_url":"https://github.com/krtek4","followers_url":"https://api.github.com/users/krtek4/followers","following_url":"https://api.github.com/users/krtek4/following{/other_user}","gists_url":"https://api.github.com/users/krtek4/gists{/gist_id}","starred_url":"https://api.github.com/users/krtek4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtek4/subscriptions","organizations_url":"https://api.github.com/users/krtek4/orgs","repos_url":"https://api.github.com/users/krtek4/repos","events_url":"https://api.github.com/users/krtek4/events{/privacy}","received_events_url":"https://api.github.com/users/krtek4/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T08:21:13Z","updated_at":"2015-09-05T08:21:13Z","body":"I am not saying removing python2 entirely, but just the packages that were installed by the role : https://github.com/team-rawbot/rawbot-virtualization/blob/master/provisioning/roles/python/tasks/main.yml#\r\n\r\nI think having the pip and virtualenv version for both python2 and python3 will only lead to issues and confusion. Even more if `/usr/bin/pip` is v2 and `/usr/local/bin/pip` is v3.\r\n\r\nI would say there should be only one pip and one virtualenv at anytime on the system.\r\n\r\nBTW, we should also maybe fill a debian bug so that the pip version can be managed via [debian alternatives][https://wiki.debian.org/DebianAlternatives]. wdyt ?"}}