[Chicago] help with pip and python-keystoneclient

sheila miguez shekay at pobox.com
Fri Feb 19 13:22:37 EST 2016


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.

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.

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:

pip install -r requirements.txt --fine-links file:///path/to/third-party
--no-index --index-url=file:///dev/null

The stack trace from pip

Downloading/unpacking python-keystoneclient==2.1.1 (from -r
requirements.txt (line 28))
  Running setup.py
(path:/srv/mojo/c3test/trusty/c3local-workspace1/build/application/build/python-keystoneclient/setup.py)
egg_info for package python-keystoneclient
    Download error on https://pypi.python.org/simple/pbr/: [Errno -2] Name
or service not known -- Some packages may not be found!
    Couldn't find index page for 'pbr' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [Errno -2] Name or
service not known -- Some packages may not be found!
    No local packages or download links found for pbr>=1.8

Why is it trying to hit pypi?

I've experimented with adding pbr>=1.8 to the top of my requirements.txt
file explicitly. That works fine.

I've checked that this ancient version of pip treats 1.8.0 as >= 1.8.

Is there something in pip 1.5.4 that ignores --no-index and --index?

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:

https://github.com/openstack/python-keystoneclient/blob/f5fb643f7c75ecf415cdbfc5a3bc4b01176d3e89/setup.py

(I've rubberducked and chatted and whatnot already with Carl and #chipy.
help me, mailinglist)

-- 
shekay at pobox.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20160219/d4d81fa3/attachment.html>


More information about the Chicago mailing list