[Bug 1607095] Re: ubuntu cloud archive repo includes python-setuptools package that breaks with trusty version of python-pip

Corey Bryant corey.bryant at canonical.com
Mon Aug 8 19:24:02 UTC 2016


On Fri, Aug 5, 2016 at 2:20 PM, Iggy <iggy at theiggy.com> wrote:

> We actually need pip in the system to install some python modules to the
> system as dependencies for other software that is installed via debs (in
> this case salt). On these particular machines there isn't anything
> actually installed via pip.
>
>
Can you explain this a little more?  It sounds like you're installing
python modules with pip, but then you say you're not.


> Either way, we're getting off topic... The version of python-setuptools
> in the cloud-archive repo is incompatible with the version of python-pip
> in Ubuntu. Between that and everything else you've said in this bug,
> there should be a `Conflicts` between the two.
>

Adding a 'Conflicts' may be the right answer here.. however I wasn't able
to reproduce this.  Here are my results on a brand new trusty install.

ubuntu at t1:~$ sudo add-apt-repository cloud-archive:liberty
 Ubuntu Cloud Archive for OpenStack Liberty
 More info: https://wiki.ubuntu.com/ServerTeam/CloudArchive
Press [ENTER] to continue or ctrl-c to cancel adding it

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  ubuntu-cloud-keyring
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,086 B of archives.
After this operation, 34.8 kB of additional disk space will be used.
Get:1 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/universe
ubuntu-cloud-keyring all 2012.08.14 [5,086 B]
Fetched 5,086 B in 0s (30.5 kB/s)
Selecting previously unselected package ubuntu-cloud-keyring.
(Reading database ... 51277 files and directories currently installed.)
Preparing to unpack .../ubuntu-cloud-keyring_2012.08.14_all.deb ...
Unpacking ubuntu-cloud-keyring (2012.08.14) ...
Setting up ubuntu-cloud-keyring (2012.08.14) ...
Importing ubuntu-cloud.archive.canonical.com keyring
OK
Processing ubuntu-cloud.archive.canonical.com removal keyring
gpg: /etc/apt/trustdb.gpg: trustdb created
OK

ubuntu at t1:~$ sudo apt update
...

ubuntu at t1:~$ apt-cache policy python-pip python-setuptools
python-pip:
  Installed: (none)
  Candidate: 1.5.4-1ubuntu4
  Version table:
     1.5.4-1ubuntu4 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/
trusty-updates/universe i386 Packages
     1.5.4-1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/universe
i386 Packages
python-setuptools:
  Installed: (none)
  Candidate: 18.4-1~cloud0
  Version table:
     18.4-1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/
trusty-updates/liberty/main i386 Packages
     3.3-1ubuntu2 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/
trusty-updates/main i386 Packages
     3.3-1ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/main i386
Packages
ubuntu at t1:~$ sudo apt install python-pip
...

ubuntu at t1:~$ apt-cache policy python-pip python-setuptools


python-pip:
  Installed: 1.5.4-1ubuntu4
  Candidate: 1.5.4-1ubuntu4
  Version table:
 *** 1.5.4-1ubuntu4 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/
trusty-updates/universe i386 Packages
        100 /var/lib/dpkg/status
     1.5.4-1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/universe
i386 Packages
python-setuptools:
  Installed: 18.4-1~cloud0
  Candidate: 18.4-1~cloud0
  Version table:
 *** 18.4-1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/
trusty-updates/liberty/main i386 Packages
        100 /var/lib/dpkg/status
     3.3-1ubuntu2 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/
trusty-updates/main i386 Packages
     3.3-1ubuntu1 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ trusty/main i386
Packages

ubuntu at t1:~$ pip freeze
Cheetah==2.4.4
Landscape-Client==14.12
PAM==0.4.2
PyYAML==3.10
Twisted-Core==13.2.0
Twisted-Names==13.2.0
Twisted-Web==13.2.0
apt-xapian-index==0.45
argparse==1.2.1
chardet==2.0.1
cloud-init==0.7.5
colorama==0.2.5
configobj==4.7.2
html5lib==0.999
jsonpatch==1.3
jsonpointer==1.0
oauth==1.0.1
prettytable==0.7.2
pyOpenSSL==0.13
pycurl==7.19.3
pyserial==2.6
python-apt===0.9.3.5ubuntu2
python-debian===0.1.21-nmu2ubuntu2
requests==2.2.1
six==1.5.2
ssh-import-id==3.21
urllib3==1.7.1
wheel==0.26.0
wsgiref==0.1.2
zope.interface==4.0.5
ubuntu at t1:~$ dpkg -l | egrep 'python-(pip|setuptools)'
ii  python-pip                       1.5.4-1ubuntu4                   all
       alternative Python package installer
ii  python-pip-whl                   1.5.4-1ubuntu4                   all
       alternative Python package installer
ii  python-setuptools                18.4-1~cloud0                    all
       Python Distutils Enhancements
ii  python-setuptools-whl            18.4-1~cloud0                    all
       Python Distutils Enhancements (wheel package)

ubuntu at t1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

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

Title:
  ubuntu cloud archive repo includes python-setuptools package that
  breaks with trusty version of python-pip

Status in Ubuntu Cloud Archive:
  New

Bug description:
  When we install python-setuptools from the cloud repo, it is too new
  to work with the version of python-pip that is included with trusty
  (as can be seen with `pip freeze`). If we then manually install a
  newer version of pip with easy_install it works fine.

  ```
  # dpkg -l | egrep 'python-(pip|setuptools)'
  ii  python-pip                          1.5.4-1ubuntu3                   all          alternative Python package installer
  ii  python-pip-whl                      1.5.4-1ubuntu3                   all          alternative Python package installer
  ii  python-setuptools                   18.4-1~cloud0                    all          Python Distutils Enhancements
  ii  python-setuptools-whl               18.4-1~cloud0                    all          Python Distutils Enhancements (wheel package)
  ```

  ```
  # pip freeze
  Exception:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
      status = self.run(options, args)
    File "/usr/lib/python2.7/dist-packages/pip/commands/freeze.py", line 74, in run
      req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)
    File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 286, in from_dist
      assert len(specs) == 1 and specs[0][0] == '=='
  AssertionError

  Storing debug log for failure in /root/.pip/pip.log
  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: python-openstackclient 1.7.0-1~cloud0 [origin: Canonical]
  ProcVersionSignature: Ubuntu 3.13.0-91.138-generic 3.13.11-ckt39
  Uname: Linux 3.13.0-91-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.21
  Architecture: amd64
  CrashDB:
   {
                  "impl": "launchpad",
                  "project": "cloud-archive",
                  "bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
               }
  Date: Wed Jul 27 21:47:03 2016
  PackageArchitecture: all
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: python-openstackclient
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1607095/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list