{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/virtualenv/issues/565","labels_url":"https://api.github.com/repos/pypa/virtualenv/issues/565/labels{/name}","comments_url":"https://api.github.com/repos/pypa/virtualenv/issues/565/comments","events_url":"https://api.github.com/repos/pypa/virtualenv/issues/565/events","html_url":"https://github.com/pypa/virtualenv/issues/565","id":27470633,"number":565,"title":"Breakage in --always-copy - fails with: ImportError: No module named time","user":{"login":"ionelmc","id":129501,"avatar_url":"https://avatars.githubusercontent.com/u/129501?v=3","gravatar_id":"","url":"https://api.github.com/users/ionelmc","html_url":"https://github.com/ionelmc","followers_url":"https://api.github.com/users/ionelmc/followers","following_url":"https://api.github.com/users/ionelmc/following{/other_user}","gists_url":"https://api.github.com/users/ionelmc/gists{/gist_id}","starred_url":"https://api.github.com/users/ionelmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionelmc/subscriptions","organizations_url":"https://api.github.com/users/ionelmc/orgs","repos_url":"https://api.github.com/users/ionelmc/repos","events_url":"https://api.github.com/users/ionelmc/events{/privacy}","received_events_url":"https://api.github.com/users/ionelmc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-02-12T21:11:50Z","updated_at":"2015-01-19T12:46:02Z","closed_at":null,"body":"On CentOS 6.5 (python2.7 from SCL):\r\n\r\n```\r\n[dev@centbox core]$ virtualenv-2.7 --always-copy .break\r\nsys.path (patched logging) = ['/opt/rh/python27/root/usr/bin', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/setuptools-2.2-py2.7.egg', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/wheel-0.22.0-py2.7.egg', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-1.5.2-py2.7.egg', '/opt/rh/python27/root/usr/lib64/python27.zip', '/opt/rh/python27/root/usr/lib64/python2.7', '/opt/rh/python27/root/usr/lib64/python2.7/plat-linux2', '/opt/rh/python27/root/usr/lib64/python2.7/lib-tk', '/opt/rh/python27/root/usr/lib64/python2.7/lib-old', '/opt/rh/python27/root/usr/lib64/python2.7/lib-dynload', '/opt/rh/python27/root/usr/lib64/python2.7/site-packages', '/opt/rh/python27/root/usr/lib/python2.7/site-packages']\r\nCannot find file lib (bad symlink)\r\nNew python executable in .break/bin/python2.7\r\nAlso creating executable in .break/bin/python\r\nInstalling setuptools, pip...\r\n  Complete output from command /home/dev/core/.break/bin/python2.7 -c \"import sys, pip; sys...d\\\"] + sys.argv[1:]))\" setuptools pip:\r\n  Traceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg/virtualenv_support/pip-1.5.2-py2.py3-none-any.whl/pip/__init__.py\", line 9, in <module>\r\n  File \"/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg/virtualenv_support/pip-1.5.2-py2.py3-none-any.whl/pip/log.py\", line 6, in <module>\r\n  File \"/opt/rh/python27/root/usr/lib64/python2.7/logging/__init__.py\", line 26, in <module>\r\n    import sys, os, time, cStringIO, traceback, warnings, weakref\r\nImportError: No module named time\r\n----------------------------------------\r\n...Installing setuptools, pip...done.\r\nTraceback (most recent call last):\r\n  File \"/opt/rh/python27/root/usr/bin/virtualenv-2.7\", line 9, in <module>\r\n    load_entry_point('virtualenv==1.11.2', 'console_scripts', 'virtualenv-2.7')()\r\n  File \"/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg/virtualenv.py\", line 824, in main\r\n    symlink=options.symlink)\r\n  File \"/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg/virtualenv.py\", line 992, in create_environment\r\n    install_wheel(to_install, py_executable, search_dirs)\r\n  File \"/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg/virtualenv.py\", line 960, in install_wheel\r\n    'PIP_NO_INDEX': '1'\r\n  File \"/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg/virtualenv.py\", line 902, in call_subprocess\r\n    % (cmd_desc, proc.returncode))\r\nOSError: Command /home/dev/core/.break/bin/python2.7 -c \"import sys, pip; sys...d\\\"] + sys.argv[1:]))\" setuptools pip failed with error code 1\r\n```\r\n\r\nWorks fine without it:\r\n\r\n```\r\n[dev@centbox core]$ virtualenv-2.7 .works\r\nsys.path (patched logging) = ['/opt/rh/python27/root/usr/bin', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/setuptools-2.2-py2.7.egg', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/wheel-0.22.0-py2.7.egg', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/virtualenv-1.11.2-py2.7.egg', '/opt/rh/python27/root/usr/lib/python2.7/site-packages/pip-1.5.2-py2.7.egg', '/opt/rh/python27/root/usr/lib64/python27.zip', '/opt/rh/python27/root/usr/lib64/python2.7', '/opt/rh/python27/root/usr/lib64/python2.7/plat-linux2', '/opt/rh/python27/root/usr/lib64/python2.7/lib-tk', '/opt/rh/python27/root/usr/lib64/python2.7/lib-old', '/opt/rh/python27/root/usr/lib64/python2.7/lib-dynload', '/opt/rh/python27/root/usr/lib64/python2.7/site-packages', '/opt/rh/python27/root/usr/lib/python2.7/site-packages']\r\nNew python executable in .works/bin/python2.7\r\nAlso creating executable in .works/bin/python\r\nInstalling setuptools, pip...done.\r\n[dev@centbox core]$\r\n"},"comment":{"url":"https://api.github.com/repos/pypa/virtualenv/issues/comments/70487383","html_url":"https://github.com/pypa/virtualenv/issues/565#issuecomment-70487383","issue_url":"https://api.github.com/repos/pypa/virtualenv/issues/565","id":70487383,"user":{"login":"lhw365","id":5500707,"avatar_url":"https://avatars.githubusercontent.com/u/5500707?v=3","gravatar_id":"","url":"https://api.github.com/users/lhw365","html_url":"https://github.com/lhw365","followers_url":"https://api.github.com/users/lhw365/followers","following_url":"https://api.github.com/users/lhw365/following{/other_user}","gists_url":"https://api.github.com/users/lhw365/gists{/gist_id}","starred_url":"https://api.github.com/users/lhw365/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhw365/subscriptions","organizations_url":"https://api.github.com/users/lhw365/orgs","repos_url":"https://api.github.com/users/lhw365/repos","events_url":"https://api.github.com/users/lhw365/events{/privacy}","received_events_url":"https://api.github.com/users/lhw365/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T12:46:02Z","updated_at":"2015-01-19T12:46:02Z","body":"the same here on Centos7 with stock python 2.7\r\n$ virtualenv --always-copy /opt/\r\nNew python executable in /opt/bin/python\r\nInstalling setuptools, pip...\r\n  Complete output from command /opt/bin/python -c \"import sys, pip; sys...d\\\"] + sys.argv[1:]))\" setuptools pip:\r\n  Traceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/usr/lib/python2.7/site-packages/virtualenv_support/pip-6.0.6-py2.py3-none-any.whl/pip/__init__.py\", line 4, in <module>\r\n  File \"/usr/lib64/python2.7/logging/__init__.py\", line 26, in <module>\r\n    import sys, os, time, cStringIO, traceback, warnings, weakref\r\nImportError: No module named time\r\n----------------------------------------\r\n...Installing setuptools, pip...done.\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/virtualenv\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/lib/python2.7/site-packages/virtualenv.py\", line 825, in main\r\n    symlink=options.symlink)\r\n  File \"/usr/lib/python2.7/site-packages/virtualenv.py\", line 993, in create_environment\r\n    install_wheel(to_install, py_executable, search_dirs)\r\n  File \"/usr/lib/python2.7/site-packages/virtualenv.py\", line 961, in install_wheel\r\n    'PIP_NO_INDEX': '1'\r\n  File \"/usr/lib/python2.7/site-packages/virtualenv.py\", line 903, in call_subprocess\r\n    % (cmd_desc, proc.returncode))\r\nOSError: Command /opt/bin/python -c \"import sys, pip; sys...d\\\"] + sys.argv[1:]))\" setuptools pip failed with error code 1\r\n"}}