FS#41267 - [python2-virtualenv] seems to fail with pip.

Attached to Project: Arch Linux
Opened by José María (mantielero) - Saturday, 19 July 2014, 14:09 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 08 April 2017, 14:08 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I cannot create a virtualenv for python2.7 with python2-virtualenv.

(I would say that pip didn't get installed in the venv)

Additional info:
extra/python2-virtualenv 1.11.6-1 [installed]
Virtual Python Environment builder

Steps to reproduce:
When I run:
$ virtualenv2 venv

I get:
New python executable in venv/bin/python2
Also creating executable in venv/bin/python
Cannot find a wheel for setuptools
Cannot find a wheel for pip
Installing setuptools, pip...
Complete output from command /home/jose/src/closeye_api/venv/bin/python2 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named pip
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
File "/usr/bin/virtualenv2", line 3, in <module>
virtualenv.main()
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 824, in main
symlink=options.symlink)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 992, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 960, in install_wheel
'PIP_NO_INDEX': '1'
File "/usr/lib/python2.7/site-packages/virtualenv.py", line 902, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/jose/src/closeye_api/venv/bin/python2 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 1


If I run:
$ ls -lR | grep pip
$
(got nothing)
This task depends upon

Closed by  Jelle van der Waa (jelly)
Saturday, 08 April 2017, 14:08 GMT
Reason for closing:  No response
Additional comments about closing:  No response
Comment by José María (mantielero) - Tuesday, 29 July 2014, 20:18 GMT
I have observed that I can get it working by means of:

$ virtualenv2 --extra-search-dir /usr/lib/python2.7/site-packages/virtualenv_support/ venv

So it looks like:
a) For some reason it is not finding the wheel files under that directory.
b) If I get: "Cannot find a wheel for setuptools", why does it continue with "Installing setuptools"
Comment by Dan McGee (toofishes) - Saturday, 03 January 2015, 20:38 GMT
Is this still happening?
Comment by José María (mantielero) - Sunday, 01 March 2015, 14:26 GMT
Yes, it is still. It happens with both virtualenv2 and vitualenv. I have tried it today:
- virtualenv2: 12.0.7
- virtualenv: 12.0.7

Given that it seems that there isn't much people with this issue, it might be an issue with my own installation.

Kind regards,
José M.


Comment by Felix Yan (felixonmars) - Sunday, 01 March 2015, 14:57 GMT
It works for me though:

$ virtualenv venv
Using base prefix '/usr'
New python executable in venv/bin/python3
Also creating executable in venv/bin/python
Installing setuptools, pip...done.

$ virtualenv2 venv2
New python executable in venv2/bin/python2
Also creating executable in venv2/bin/python
Installing setuptools, pip...done.
Comment by Dan McGee (toofishes) - Sunday, 24 May 2015, 14:22 GMT
Can you try this again with version 13.0.1 that I just pushed? I'm not quite sure what is happening here.

Loading...