Public bug reported:

/etc/pip.conf
[global]
timeout = 60
index = https://artifacts.somewhere.com/repository/pypi-public/pypi
index-url = https://artifacts.somewhere.com/repository/pypi-public/simple
extra-index = https://artifacts.somewhere.com/repository/pypi-release/pypi
                  https://artifacts.somewhere.com/repository/pypi-test/pypi
extra-index-url = https://artifacts.somewhere.com/repository/pypi-release/simple
                  https://artifacts.somewhere.com/repository/pypi-test/simple
                  https://pypi.somewhere.com
                  https://pypi-test.somewhere.com


##################
##################
##################

We have nexus (competitor to artifactory) setup to proxy / cache the public 
pypi.org as 'pypi-public'
pypi-release and pypi-test are our own internal package repos (hosted) for our 
python packages

the last 2 (pypi/pypi-test.somewhere) are old s3 bucket configs of ours
that im in the process of deprecating.  Our nexus requires
authorization, so we have /root/.netrc configured, since that would be
used for system level installs.  Users can of course configure a
~/.netrc with the proper login details.


Actual issue when doing a pip install   on 9.0.1 on debian/ubuntu:

root@vagrant:/etc# pip install ansible==                                        
                                                                                
                                                                                
                                                                            
Collecting ansible==                                                            
                                                                                
                                                                                
                                                                            
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main 
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in 
run
    wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in 
prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in 
_prepare_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in 
populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in 
find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in 
find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages 
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 795, in get_page
    resp.raise_for_status()
  File 
"/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py",
 line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found for url: 
https://our.internal.repo/repository/pypi-release/simple/ansible/


Works on centos, and ubuntu 16 with repackaged Pip 8.1.2.
Unfortunately, debian handles things like vendored libs in pip
differently than other distros, so it appears to be a bug in deb/ubu
requests?  https://bugs.launchpad.net/ubuntu/+source/python-
pip/+bug/1772746

The issue is different, but I have a feeling that the cause is the same,
the underlying requests library is stuck and has issues.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: python-pip 9.0.1-2.3~ubuntu1.18.04.1
ProcVersionSignature: Ubuntu 4.15.0-58.64-generic 4.15.18
Uname: Linux 4.15.0-58-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
Date: Fri Aug 30 18:29:14 2019
InstallationDate: Installed on 2019-08-16 (14 days ago)
InstallationMedia: Ubuntu-Server 18.04.2 LTS "Bionic Beaver" - Release amd64 
(20190210)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-pip
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: python-pip (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1842120

Title:
  python-pip fails to retrieve package manifest from extra-index on
  ubuntu18 python-pip python3-pip

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1842120/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to