{"action":"opened","issue":{"url":"https://api.github.com/repos/PolicyStat/terrarium/issues/66","repository_url":"https://api.github.com/repos/PolicyStat/terrarium","labels_url":"https://api.github.com/repos/PolicyStat/terrarium/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/PolicyStat/terrarium/issues/66/comments","events_url":"https://api.github.com/repos/PolicyStat/terrarium/issues/66/events","html_url":"https://github.com/PolicyStat/terrarium/issues/66","id":314609527,"number":66,"title":"Terrarium can't build a new virtualenv if pip 10 is installed","user":{"login":"jwg4","id":5060616,"avatar_url":"https://avatars0.githubusercontent.com/u/5060616?v=4","gravatar_id":"","url":"https://api.github.com/users/jwg4","html_url":"https://github.com/jwg4","followers_url":"https://api.github.com/users/jwg4/followers","following_url":"https://api.github.com/users/jwg4/following{/other_user}","gists_url":"https://api.github.com/users/jwg4/gists{/gist_id}","starred_url":"https://api.github.com/users/jwg4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwg4/subscriptions","organizations_url":"https://api.github.com/users/jwg4/orgs","repos_url":"https://api.github.com/users/jwg4/repos","events_url":"https://api.github.com/users/jwg4/events{/privacy}","received_events_url":"https://api.github.com/users/jwg4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-16T11:27:14Z","updated_at":"2018-04-16T11:27:14Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Terrarium seems to fail with pip 10.\r\n\r\nTerrarium adds some code to the virtualenv bootstrap script, which is run with the python, wheel, setuptools and pip which have just been installed into the venv at a temporary location. \r\nThis includes the command `from pip.commands.install import InstallCommand`. See https://github.com/PolicyStat/terrarium/blob/master/terrarium/terrarium.py#L633 This command fails with the new version of pip which no longer has a module called `commands`.\r\n\r\nI tried building a new environment on a couple of Linux machines and got similar results. There might be something about my setup which I'm missing - however it seems like this will fail whenever the updated pip is pulled in by virtualenv. Note that virtualenv itself can create a virtualenv fine because the import command which fails is added to the virtualenv script by terrarium.\r\n\r\nVersions - note that pip 9 is currently installed. However since pip 10 is available (since 2 days ago), building a new virtualenv causes pip 10 to be installed. \r\n```\r\njack@neptune-vm:~/z$ python --version\r\nPython 2.7.12\r\njack@neptune-vm:~/z$ pip --version\r\npip 9.0.1 from /usr/local/lib/python2.7/dist-packages (python 2.7)\r\njack@neptune-vm:~/z$ easy_install --version\r\nsetuptools 38.5.1 from /usr/local/lib/python2.7/dist-packages (Python 2.7)\r\njack@neptune-vm:~/z$ virtualenv --version\r\n15.1.0\r\njack@neptune-vm:~/z$ terrarium --version\r\nterrarium 1.0.1\r\n```\r\n\r\nError message\r\n```\r\njack@neptune-vm:~/z$ terrarium --target venv install\r\nBuilding new environment\r\nNew python executable in /home/jack/z/venv.g9SgyC/bin/python\r\nInstalling setuptools, pip, wheel...done.\r\nTraceback (most recent call last):\r\n  File \"/tmp/terrarium_bootstrap-JqbF6h.py\", line 2396, in <module>\r\n    main()\r\n  File \"/tmp/terrarium_bootstrap-JqbF6h.py\", line 717, in main\r\n    after_install(options, home_dir)\r\n  File \"/tmp/terrarium_bootstrap-JqbF6h.py\", line 1848, in after_install\r\n    from pip.commands.install import InstallCommand\r\nImportError: No module named commands.install\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/terrarium\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/dist-packages/terrarium/terrarium.py\", line 956, in main\r\n    r = terrarium.install()\r\n  File \"/usr/local/lib/python2.7/dist-packages/terrarium/terrarium.py\", line 216, in install\r\n    new_target\r\n  File \"/usr/local/lib/python2.7/dist-packages/virtualenv.py\", line 797, in call_subprocess\r\n    % (cmd_desc, proc.returncode))\r\nOSError: Command /usr/bin/python /tmp/terrarium_bootstrap-JqbF6h.py --prompt=(venv) /home/jack/z/venv.g9SgyC failed with error code 1\r\n```\r\n"}}
{"actor":{"display_login":"jwg4"}}