<div dir="ltr"><div>I've been struggling with this trying to figure out why pip can't find a dependency when it tries to install python-keystoneclient. Our django app has a requirements file with pinned versions. Recently we updated python-keystoneclient to 2.1.1. It depends on pbr>=1.8.<br><br></div><div>When I try to deploy our project, the step where it installs dependencies fails when it gets to python-keystoneclient because it cannot find a version of pbr that satisfies >=1.8.<br><br></div><div>Pip is invoked this way in a Makefile that was passed down to me. /path/to/third-party has tarballs of all the dependencies. It contains pbr 1.8.0:<br><br></div><div>pip install -r requirements.txt --fine-links file:///path/to/third-party --no-index --index-url=file:///dev/null<br><br></div><div><div><div><div>The stack trace from pip<br><br>Downloading/unpacking python-keystoneclient==2.1.1 (from -r requirements.txt (line 28))<br>  Running setup.py (path:/srv/mojo/c3test/trusty/c3local-workspace1/build/application/build/python-keystoneclient/setup.py) egg_info for package python-keystoneclient<br>    Download error on <a href="https://pypi.python.org/simple/pbr/">https://pypi.python.org/simple/pbr/</a>: [Errno -2] Name or service not known -- Some packages may not be found!<br>    Couldn't find index page for 'pbr' (maybe misspelled?)<br>    Download error on <a href="https://pypi.python.org/simple/">https://pypi.python.org/simple/</a>: [Errno -2] Name or service not known -- Some packages may not be found!<br>    No local packages or download links found for pbr>=1.8<br></div><div><br></div><div>Why is it trying to hit pypi?<br><br></div><div>I've experimented with adding pbr>=1.8 to the top of my requirements.txt file explicitly. That works fine.<br><br></div><div>I've checked that this ancient version of pip treats 1.8.0 as >= 1.8.<br><br></div><div>Is there something in pip 1.5.4 that ignores --no-index and --index?<br><br></div><div>I'm going to look in to python-keystoneclient to see if they are doing anything weird with setuptools. It doesn't look weird to me:<br><br><a href="https://github.com/openstack/python-keystoneclient/blob/f5fb643f7c75ecf415cdbfc5a3bc4b01176d3e89/setup.py">https://github.com/openstack/python-keystoneclient/blob/f5fb643f7c75ecf415cdbfc5a3bc4b01176d3e89/setup.py</a><br><br></div><div>(I've rubberducked and chatted and whatnot already with Carl and #chipy. help me, mailinglist)<br><br></div><div>-- <br><div class="gmail_signature"><div dir="ltr"><a href="mailto:shekay@pobox.com" target="_blank">shekay@pobox.com</a></div></div>
</div></div></div></div></div>