From pip.req...ImportError: No module named req


#1

I get this error for most/all sub-directories on ./update_nrp update all , not only for CLE.

-------------------------
CLE
-------------------------
for f in hbp_nrp_cle; do \
	if [ -f $f/setup_requirements.txt ]; then \
		/home/akshay/.opt/platform_venv/bin/pip install  -r $f/setup_requirements.txt; \
                fi; \
	sed -i 's/.*# *EPFL_SPECIFIC/#&/' $f/requirements.txt; \
	(cd $f && /home/akshay/.opt/platform_venv/bin/pip install  --pre -e .); \
	sed -i '/# *EPFL_SPECIFIC/s/^#*//' $f/requirements.txt; \
done
Obtaining file:///home/akshay/Documents/NRP/CLE/hbp_nrp_cle
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/akshay/Documents/NRP/CLE/hbp_nrp_cle/setup.py", line 13, in <module>
        from pip.req import parse_requirements
    ImportError: No module named req
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/akshay/Documents/NRP/CLE/hbp_nrp_cle/

The pip in my $HOME/.opt/platform_env is already the most up-to-date. And ~/.opt/platform_venv/lib/python2.7/site-packages/pip/req exists

Any ideas?

Thanks
Akshay


#2

What version of pip are you using?


#3

The pip in my ~/.opt/platform_venv is version 9.0.3 and points to ~/.local/lib/python2.7/site-packages


#4

Hm, at least the dev mode still uses pip version 1.4.1. So, what you can do is to temporaily downgrade pip using pip --upgrade pip==1.4.1 and try again.