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

Bug#845489: marked as done (lsb-release: lsb_release.py : FileNotFound and Python 2.7)



Your message dated Fri, 25 Nov 2016 15:34:01 +0000
with message-id <E1cAIVl-000Akk-Im@fasolo.debian.org>
and subject line Bug#845489: fixed in lsb 9.20161125
has caused the Debian Bug report #845489,
regarding lsb-release: lsb_release.py : FileNotFound and Python 2.7
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
845489: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845489
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lsb-release
Version: 9.20161101
Severity: important
Tags: upstream

Dear Maintainer,

The script lsb_release.py in

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

is buggy. Indeed, it uses 'FileNotFoundError' which is not defined in
Python 2.7. This results into bugs when you run the python function

    lsb_release.get_distro_information()

when the file /usr/share/distro-info/%s.csv does not exists (it is for
example the case on my raspberrypi which runs raspbian) :

     release = lsb_release.get_distro_information()
     File "/usr/lib/python2.7/dist-packages/lsb_release.py", line 341,
in get_distro_information
     distinfo = guess_debian_release()
     File "/usr/lib/python2.7/dist-packages/lsb_release.py", line 239,
in guess_debian_release
     get_distro_info(distinfo['ID'])
     File "/usr/lib/python2.7/dist-packages/lsb_release.py", line 33, in
get_distro_info
          except FileNotFoundError:
          NameError: global name 'FileNotFoundError' is not defined


The fix should be pretty trivial, but it would be nice to make it
working. Thank you in advance for solving this bug,

tobiasBora.

-- Package-specific info:
lsb_release output
-*- -*- -*- -*- -*-
Distributor ID: Debian
Description:    Debian GNU/Linux unstable (sid)
Release:        unstable
Codename:       sid
-*- -*- -*- -*- -*-
    Apt policy
-*- -*- -*- -*- -*-
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500
http://ppa.launchpad.net/webcamstudio/webcamstudio-dailybuilds/ubuntu
xenial/main i386 Packages
     release
v=16.04,o=LP-PPA-webcamstudio-webcamstudio-dailybuilds,a=xenial,n=xenial,l=WebcamStudio
PPA (Daily Builds),c=main,b=i386
     origin ppa.launchpad.net
 500
http://ppa.launchpad.net/webcamstudio/webcamstudio-dailybuilds/ubuntu
xenial/main amd64 Packages
     release
v=16.04,o=LP-PPA-webcamstudio-webcamstudio-dailybuilds,a=xenial,n=xenial,l=WebcamStudio
PPA (Daily Builds),c=main,b=amd64
     origin ppa.launchpad.net
 500 https://pkg.tox.chat/debian nightly/sid i386 Packages
     release o=pkg.tox.chat,a=nightly,n=nightly,l=pkg.tox.chat,c=sid,b=i386
     origin pkg.tox.chat
 500 https://pkg.tox.chat/debian nightly/sid amd64 Packages
     release o=pkg.tox.chat,a=nightly,n=nightly,l=pkg.tox.chat,c=sid,b=amd64
     origin pkg.tox.chat
 500 https://dl.bintray.com/sbt/debian  Packages
     release o=Bintray,l=Bintray,c=
     origin dl.bintray.com
 500
http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Debian_8.0 
Packages
     release
o=obs://build.opensuse.org/isv:ownCloud:desktop/Debian_8.0,n=Debian_8.0,l=isv:ownCloud:desktop,c=
     origin download.opensuse.org
 500 http://download.fpcomplete.com/debian jessie/main amd64 Packages
     release n=jessie,c=main,b=amd64
     origin download.fpcomplete.com
 500 https://apt.dockerproject.org/repo debian-stretch/main amd64 Packages
     release o=Docker,a=debian-stretch,n=debian-stretch,l=Docker APT
Repository,c=main,b=amd64
     origin apt.dockerproject.org
 500 https://packages.chef.io/repos/apt/stable jessie/main i386 Packages
     release o=Artifactory,a=jessie,n=jessie,l=Artifactory,c=main,b=i386
     origin packages.chef.io
 500 https://packages.chef.io/repos/apt/stable jessie/main amd64 Packages
     release o=Artifactory,a=jessie,n=jessie,l=Artifactory,c=main,b=amd64
     origin packages.chef.io
 500 http://security.debian.org/debian-security wheezy/updates/main i386
Packages
     release
v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://security.debian.org/debian-security wheezy/updates/main
amd64 Packages
     release
v=7.0,o=Debian,a=oldstable,n=wheezy,l=Debian-Security,c=main,b=amd64
     origin security.debian.org
   1 http://ftp.debian.org/debian experimental/non-free i386 Packages
     release
o=Debian,a=experimental,n=experimental,l=Debian,c=non-free,b=i386
     origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/non-free amd64 Packages
     release
o=Debian,a=experimental,n=experimental,l=Debian,c=non-free,b=amd64
     origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/contrib i386 Packages
     release
o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=i386
     origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/contrib amd64 Packages
     release
o=Debian,a=experimental,n=experimental,l=Debian,c=contrib,b=amd64
     origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/main i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=i386
     origin ftp.debian.org
   1 http://ftp.debian.org/debian experimental/main amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=main,b=amd64
     origin ftp.debian.org
   1 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
   1 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://ftp.fr.debian.org/debian unstable/non-free i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=non-free,b=i386
     origin ftp.fr.debian.org
 990 http://ftp.fr.debian.org/debian unstable/non-free amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=non-free,b=amd64
     origin ftp.fr.debian.org
 990 http://ftp.fr.debian.org/debian unstable/contrib i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=contrib,b=i386
     origin ftp.fr.debian.org
 990 http://ftp.fr.debian.org/debian unstable/contrib amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=contrib,b=amd64
     origin ftp.fr.debian.org
 990 http://ftp.fr.debian.org/debian unstable/main i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=i386
     origin ftp.fr.debian.org
 990 http://ftp.fr.debian.org/debian unstable/main amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main,b=amd64
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian testing/non-free i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian testing/non-free amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free,b=amd64
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian testing/contrib i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian testing/contrib amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib,b=amd64
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian testing/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian testing/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main,b=amd64
     origin ftp.fr.debian.org
Pinned packages:
-*- -*- -*- -*- -*-
   sources.list
-*- -*- -*- -*- -*-
deb [arch=amd64,i386] http://ftp.fr.debian.org/debian/ testing main
contrib non-free
deb-src http://ftp.fr.debian.org/debian/ testing main contrib non-free
deb [arch=amd64,i386] http://ftp.fr.debian.org/debian/ unstable main
contrib non-free
deb-src http://ftp.fr.debian.org/debian/ unstable main contrib non-free
deb [arch=amd64,i386] http://security.debian.org testing/updates main
contrib non-free
deb-src http://security.debian.org testing/updates main contrib non-free
deb [arch=amd64,i386] http://httpredir.debian.org/debian experimental main
deb [arch=amd64,i386] http://ftp.debian.org/debian experimental main
contrib non-free
deb http://security.debian.org/debian-security wheezy/updates main
-*- -*- -*- -*- -*-
 /etc/lsb_release
-*- -*- -*- -*- -*-
- none

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

Kernel: Linux 4.8.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (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.32
pn  python3:any       <none>

Versions of packages lsb-release recommends:
ii  apt  1.3.1

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

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: lsb
Source-Version: 9.20161125

We believe that the bug you reported is fixed in the latest version of
lsb, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 845489@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Didier Raboud <odyx@debian.org> (supplier of updated lsb package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 25 Nov 2016 16:15:24 +0100
Source: lsb
Binary: lsb-base lsb-release lsb-compat
Architecture: source
Version: 9.20161125
Distribution: unstable
Urgency: medium
Maintainer: Debian LSB Team <debian-lsb@lists.debian.org>
Changed-By: Didier Raboud <odyx@debian.org>
Description:
 lsb-base   - Linux Standard Base init script functionality
 lsb-compat - Linux Standard Base Compatibility
 lsb-release - Linux Standard Base version reporting utility
Closes: 837639 845489
Changes:
 lsb (9.20161125) unstable; urgency=medium
 .
   [ Didier Raboud ]
   * Test the distro-info non-Debian fallback, to fix #845489
   * Also run the tests for all pyversions (Python 2.7 only)
   * Fix regressions on python2 (Closes: #845489)
 .
   [ Philipp Hahn ]
   * Strip leading spaces in get_lsb_header_val (Closes: #837639)
Checksums-Sha1:
 36532d79291138c2ccc5c4c6fbdf580451aca642 1697 lsb_9.20161125.dsc
 368331f9a4c09d622510138a91d73ccd54a5540e 43096 lsb_9.20161125.tar.xz
Checksums-Sha256:
 f2dd58084b1beabe966136cfd2e1b355002c1fb1635a6db5ef159b09ed94864f 1697 lsb_9.20161125.dsc
 0f9889ff1922da54d1f1538c11a57aa21dc5adf621e6201b18026f6633088bbd 43096 lsb_9.20161125.tar.xz
Files:
 f278191a471765f167fd185993f49bff 1697 misc extra lsb_9.20161125.dsc
 a3ada3f03c7f00752c831e3afc74ca2f 43096 misc extra lsb_9.20161125.tar.xz

-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEEe+WPIRpjNw1/GSB7i8+nHsoWNFUFAlg4VhcACgkQi8+nHsoW
NFXOEgv+Kg+q42CAzyUdYrOMtMos2hUHgQWQwkAhOItVNxyQI9nX5nOEGCihJvIl
z3Fz7j2rHFyCOH2EGEKFxtZ3/rWuNNkOIMIs7SUnjQnaRcveGea/mMdENnf6zvUc
MPghMyuSNrWEk/Pu07LXwXWxHyNsWWBx7MLiBgrpq+QJaR6bER+n+QjT/a4Welg4
cly1/8b8fadcTu0Di3Mk07eH1GZvlizT1p/rCE8HtKQRyVDvWJa6u3ue5EkHUddq
JbJv0NuUkjsGB8xHflmf4ifAyqhOXLkdb1bPFM8Xze/5GngZo8h72EY98E08gz/Q
GoqHyioxIuLRu6ZRSuRhWaWzdqaCTqVx8xnckAc0LZpRKSmw3uUpx3O4OoEOuGU7
bngGhqkzytnUllg+MRD9X0zf94J9Ui6arajtzhBsIXZz6xZKvDh39wjYnz0xmgdo
LXxrThMjcSH48RX1p82+RhJ9YI4g9+Eoo+R+Rq6Tq+h4PUO5Ij8LLs+1bwlrbhCY
/rvLJUWt
=bvOU
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: