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

[email protected] (Debian Bug Tracking System) Fri, 25 Nov 2016 15:39:05 +0000
Newsgroups gmane.linux.debian.devel.lsb
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1480088345-9408-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8

Your message dated Fri, 25 Nov 2016 15:34:01 +0000
with message-id <[email protected]>
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 [email protected]
immediately.)


--=20
845489: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D845489
Debian Bug Tracking System
Contact [email protected] with problems

------------=_1480088345-9408-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 23 Nov 2016 21:41:16 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-8.5 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FOURLA,FREEMAIL_FROM,HAS_PACKAGE,RCVD_IN_DNSWL_NONE,
	SPF_PASS,URIBL_CNKR autolearn=ham autolearn_force=no
	version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 101; hammy, 150; neutral, 313; spammy,
	0. spammytokens: hammytokens:0.000-+--python27, 0.000-+--python2.7,
	0.000-+--H*UA:45.0, 0.000-+--H*u:45.0, 0.000-+--systemd
Return-path: <[email protected]>
Received: from mail-wj0-x22a.google.com ([2a00:1450:400c:c01::22a])
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1c9fI3-0005rp-Ll
	for [email protected]; Wed, 23 Nov 2016 21:41:16 +0000
Received: by mail-wj0-x22a.google.com with SMTP id qp4so18198432wjc.3
        for <[email protected]>; Wed, 23 Nov 2016 13:41:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=to:from:subject:message-id:date:user-agent:mime-version
         :content-transfer-encoding;
        bh=Fm8E5B9o35Rhkn4QtIcIXxraXP86iabYEDbFruv1WYI=;
        b=AfIQoBdVi38zfYaR0J86CK6JiWhubV/UUAivBFZekf7Gq8oLLHsyw6fOXbd77y/45C
         zRJCcodAw8wB2sAE9N787TjyewfZUykmNhSY8YmEi5AjMeBgSrI7kA+onv7zwtZljspQ
         IlYuAdBGgfuLpHPSTgkVhnsdbRtfv3BmUeQa83VBnMo+AvjQkI02WUIhwinhGGTLud0D
         NPumaDmEE4R+bfVF3HzcKdeLNlRkT1pTHz3kgKOY9rngv3G6sn07baSCV+eLMQc4M6GB
         4jJzecmorfVJUc/CqmYDTnVkXPcpnpqePz+L4fxJjBSC9aLl3mAVyCDb4f28c52DidGS
         3TQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:message-id:date:user-agent
         :mime-version:content-transfer-encoding;
        bh=Fm8E5B9o35Rhkn4QtIcIXxraXP86iabYEDbFruv1WYI=;
        b=G+LnAoSFWEiJseMONlshwPV7LQJZTtwveNsou+fzJ/6Usv4gX5P67kJsHmk/8vBLqM
         Env/O2Sb4LM0TeyNatP/QMmZc4++SrpAadOdq10zAs94C0fkhuykP3ZyenICqJBWTJo1
         XqmKCmJFf9BCzFKvWVifaDKG/n53WMGfq1P6iO8o5NzvEG7ZueqSKm2s5/U+7WfEQ8wA
         XiaWw/Rsw3PzkO33kALUNPaPtJT36H+qiGw15G1x5txAsczw/R0f+uvmSMMBf0IlBcBd
         tRcbqB9SfVVxTYx6+/tvw1910oy9AxG7Qf4UQf8kzrxxyRzcAinmWn9anfphTML0j8nq
         jIZA==
X-Gm-Message-State: AKaTC00ImWYbUqrO9llEBvCtMO/kyKB7ekePA4wXnInpqSunVbN+u4Gi0YRSOJ2upoNuhg==
X-Received: by 10.194.85.107 with SMTP id g11mr5101528wjz.82.1479937267892;
        Wed, 23 Nov 2016 13:41:07 -0800 (PST)
Received: from [192.168.1.188] (bornebora.crans.org. [138.231.137.21])
        by smtp.googlemail.com with ESMTPSA id d184sm4807347wmd.8.2016.11.23.13.41.06
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 23 Nov 2016 13:41:07 -0800 (PST)
To: Debian Bug Tracking System <[email protected]>
From: Tobias Bora <[email protected]>
Subject: lsb-release: lsb_release.py : FileNotFound and Python 2.7
Message-ID: <[email protected]>
Date: Wed, 23 Nov 2016 22:41:07 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Icedove/45.4.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Delivered-To: [email protected]

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

------------=_1480088345-9408-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 845489-close) by bugs.debian.org; 25 Nov 2016 15:34:06 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
	(2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-16.0 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
	FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_BUG_NUMBER,PGPSIGNATURE,RP_MATCHES_RCVD
	autolearn=ham autolearn_force=no version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 75; hammy, 149; neutral, 136; spammy,
	1. spammytokens:0.995-1--QjT hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--Hx-spam-relays-external:sk:envelop, 0.000-+--H*r:138.16.160
Return-path: <[email protected]>
Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33])
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=muffat.debian.org,[email protected] (verified)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1cAIVq-0001yK-C0
	for [email protected]; Fri, 25 Nov 2016 15:34:06 +0000
Received: from [138.16.160.17] (helo=fasolo.debian.org)
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,[email protected] (verified)
	by muffat.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1cAIVq-0007f1-5y; Fri, 25 Nov 2016 15:34:06 +0000
Received: from dak by fasolo.debian.org with local (Exim 4.84_2)
	(envelope-from <[email protected]>)
	id 1cAIVl-000Akk-Im; Fri, 25 Nov 2016 15:34:01 +0000
From: Didier Raboud <[email protected]>
To: [email protected]
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: lsb
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Subject: Bug#845489: fixed in lsb 9.20161125
Message-Id: <[email protected]>
Date: Fri, 25 Nov 2016 15:34:01 +0000

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Didier Raboud <[email protected]> (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 [email protected])


-----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 <[email protected]>
Changed-By: Didier Raboud <[email protected]>
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-----
------------=_1480088345-9408-0--