[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#826962: ImportError: No module named 'lsb_release'



Package: lsb-release
Version: 9.20160601
Severity: grave
Justification: renders package unusable

I stumbled upon this error today through dkms


rrs@chutzpah:~$ lsb_release 
Traceback (most recent call last):
  File "/usr/bin/lsb_release", line 25, in <module>
    import lsb_release
ImportError: No module named 'lsb_release'
22:08 ♒♒♒    ☹  => 1  


Looking at the package, there seems to be a module for both the python versions.
I'm not yet aware of how Python3 integration in Debian is, but the
standard paths look like the following

rrs@chutzpah:~$ python3
Python 3.5.1+ (default, Jun  9 2016, 15:41:54) 
[GCC 5.4.0 20160603] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import lsb_release
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'lsb_release'
>>> import sys
>>> sys.path
['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload']
>>> 

rrs@chutzpah:~$ dpkg -L lsb-release
/.
/usr
/usr/bin
/usr/bin/lsb_release
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python3
/usr/lib/python3/dist-packages
/usr/share
/usr/share/bug
/usr/share/bug/lsb-release
/usr/share/doc
/usr/share/doc/lsb-release
/usr/share/doc/lsb-release/README.Debian
/usr/share/doc/lsb-release/changelog.gz
/usr/share/doc/lsb-release/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/lsb_release.1.gz
/usr/share/pyshared
/usr/share/pyshared/lsb_release.py
/usr/lib/python2.7/dist-packages/lsb_release.py
/usr/lib/python3/dist-packages/lsb_release.py



-- Package-specific info:
lsb_release output
-*- -*- -*- -*- -*-
-*- -*- -*- -*- -*-
    Apt policy
-*- -*- -*- -*- -*-
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://debug.mirrors.debian.org/debian-debug unstable-debug/non-free i386 Packages
     release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=non-free,b=i386
     origin debug.mirrors.debian.org
 500 http://debug.mirrors.debian.org/debian-debug unstable-debug/non-free amd64 Packages
     release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=non-free,b=amd64
     origin debug.mirrors.debian.org
 500 http://debug.mirrors.debian.org/debian-debug unstable-debug/contrib i386 Packages
     release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=contrib,b=i386
     origin debug.mirrors.debian.org
 500 http://debug.mirrors.debian.org/debian-debug unstable-debug/contrib amd64 Packages
     release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=contrib,b=amd64
     origin debug.mirrors.debian.org
 500 http://debug.mirrors.debian.org/debian-debug unstable-debug/main i386 Packages
     release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=main,b=i386
     origin debug.mirrors.debian.org
 500 http://debug.mirrors.debian.org/debian-debug unstable-debug/main amd64 Packages
     release o=Debian,a=unstable-debug,n=sid-debug,l=Debian debug,c=main,b=amd64
     origin debug.mirrors.debian.org
 100 http://httpredir.debian.org/debian experimental/non-free i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=non-free,b=i386
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian experimental/non-free amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=non-free,b=amd64
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian experimental/contrib i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=i386
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian experimental/contrib amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=amd64
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian experimental/main i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=i386
     origin httpredir.debian.org
 100 http://httpredir.debian.org/debian experimental/main amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian unstable/non-free i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=non-free,b=i386
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian unstable/non-free amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=non-free,b=amd64
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian unstable/contrib i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=contrib,b=i386
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian unstable/contrib amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=contrib,b=amd64
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian unstable/main i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=i386
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian unstable/main amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian testing/non-free i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free,b=i386
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian testing/non-free amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free,b=amd64
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian testing/contrib i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib,b=i386
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian testing/contrib amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib,b=amd64
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian testing/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main,b=i386
     origin httpredir.debian.org
 990 http://httpredir.debian.org/debian testing/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main,b=amd64
     origin httpredir.debian.org
Pinned packages:
     linux-image-amd64 -> 4.6+74 with priority 991
     linux-headers-amd64 -> 4.6+74 with priority 991
-*- -*- -*- -*- -*-
   sources.list
-*- -*- -*- -*- -*-
deb http://security.debian.org	testing/updates main contrib non-free
deb-src http://security.debian.org testing/updates main contrib non-free
deb http://httpredir.debian.org/debian/ testing main contrib non-free
deb-src http://httpredir.debian.org/debian/ testing main contrib non-free
deb http://httpredir.debian.org/debian/ unstable main contrib non-free
deb-src http://httpredir.debian.org/debian/ unstable main contrib non-free
deb http://httpredir.debian.org/debian/ experimental main contrib non-free
deb-src http://httpredir.debian.org/debian/ experimental main contrib non-free
-*- -*- -*- -*- -*-
 /etc/lsb_release
-*- -*- -*- -*- -*-
- none

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (990, 'testing'), (500, 'unstable-debug'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages lsb-release depends on:
ii  distro-info-data  0.29
pn  python3:any       <none>

Versions of packages lsb-release recommends:
ii  apt  1.2.12

Versions of packages lsb-release suggests:
pn  lsb  <none>

-- no debconf information


Reply to: