[Bug 1596638] Re: python2 cannot import lsb_release on yakkety and now xenial

Haw Loeung 1596638 at bugs.launchpad.net
Thu Jul 7 00:04:13 UTC 2016


Fixed in 9.20160110ubuntu0.2.

Before update:

| hloeung at steelix:~$ python2.7
| ...
| >>> import lsb_release
| Traceback (most recent call last):
|   File "<stdin>", line 1, in <module>
| ImportError: No module named lsb_release
| >>>

After:

| hloeung at steelix:~$ ls /usr/lib/python*/dist-packages/lsb* -l
| lrwxrwxrwx 1 root root 38 Jul  6 16:29 /usr/lib/python2.7/dist-packages/lsb_release.py -> ../../../share/pyshared/lsb_release.py
| lrwxrwxrwx 1 root root 38 Jul  6 16:29 /usr/lib/python3/dist-packages/lsb_release.py -> ../../../share/pyshared/lsb_release.py

| hloeung at steelix:~$ python2.7
| >>> import lsb_release
| >>>


Thanks guys!

** Tags removed: verification-needed
** Tags added: verification-done

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

Title:
  python2 cannot import lsb_release on yakkety and now xenial

Status in lsb package in Ubuntu:
  Triaged
Status in lsb source package in Xenial:
  Fix Committed

Bug description:
  [SRU Justification]
  Targeted fix for a regression introduced in the previous SRU; the 'lsb_release' python module is now unavailable in python 2, where it was available before the SRU.

  [Test Case]
  1. Install lsb-release from xenial-updates.
  2. Run "python -c 'import lsb_release'".
  3. Verify that the command fails with an error.
  4. Install lsb-release from xenial-proposed.
  5. Run "python -c 'import lsb_release'".
  6. Verify that the command succeeds (silently).

  [Regression potential]
  Minimal; this restores the python module to the state it was prior to the latest SRU.  A debdiff of the binary packages should show no other changes.

  python2 cannot import lsb_release on yakkety. `locate` shows "lsb-
  release" installed several files, but

      /usr/lib/python2.7/dist-packages/lsb_release.py

  is missing from disk. This was seen on an aws instance provisioned
  using the 20160526 daily image.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lsb/+bug/1596638/+subscriptions



More information about the foundations-bugs mailing list