I have solved this bug myself. These were the steps:

colin@colin:~$ find /usr/lib -name "lsb_release*"
/usr/lib/python2.7/dist-packages/lsb_release.py
/usr/lib/python2.7/dist-packages/lsb_release.pyc
/usr/lib/python3/dist-packages/lsb_release.py
/usr/lib/python3/dist-packages/__pycache__/lsb_release.cpython-32.pyc

colin@colin:~$ sudo rm /usr/lib/python3/dist-
packages/__pycache__/lsb_release.cpython-32.pyc

And to verify it worked:

colin@colin:~$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:16) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lsb_release
>>> quit()
colin@colin:~$

As you can see, no errors anymore on trying to import lsb_release.
Running aptitude full-upgrade worked as well and finished configuring
extlinux.

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

Title:
  can't import lsb_release in python3 anymore

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

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

Reply via email to