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

Bug#505443: marked as done (python-apt 0.7.4ubuntu7.3 breaks sys.excepthook when used with python -tt)



Your message dated Fri, 16 Jan 2009 11:02:19 +0000
with message-id <E1LNmSx-00066i-3r@ries.debian.org>
and subject line Bug#505443: fixed in python-apt 0.7.9~exp2
has caused the Debian Bug report #505443,
regarding python-apt 0.7.4ubuntu7.3 breaks sys.excepthook when used with python -tt
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.)


-- 
505443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505443
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message --- Package: python-apt
Version: 0.7.4ubuntu7.3
Severity: important

Upgrading to the just-released python-apt 0.7.4ubuntu7.3 introduces
inconsistent use of tabs and spaces that completely breaks use of
sys.excepthook with the python -tt option (issue errors for inconsistent
use of tabs and spaces).

I have appended a typescript with reproduction steps below, using raw
python (with the -tt option).

(I find it exceedingly odd, in general, that use of sys.excepthook with
absolutely no other calls or packages involved somehow ends up calling
into an apt packaging library.)

Because this breaks a completely normal part of the Python API
(sys.excepthook) when used with a recommended option used by Python
projects to enforce consistent use of tabs and spaces, I think this is
bug report is a candidate for Severity level of at least "serious."

Reproduction steps:

Script started on Wed Nov 12 04:37:31 2008
$ python -tt
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> apply(sys.excepthook, sys.exc_info())
None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.5/site-packages/apport/report.py", line 21, in <module>
    import fileutils
  File "/usr/lib/python2.5/site-packages/apport/fileutils.py", line 16, in <module>
    from packaging_impl import impl as packaging
  File "/usr/lib/python2.5/site-packages/apport/packaging_impl.py", line 18, in <module>
    import apt
  File "/usr/lib/python2.5/site-packages/apt/__init__.py", line 8, in <module>
    from apt.cache import Cache
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 24, in <module>
    import apt.progress
  File "/usr/lib/python2.5/site-packages/apt/progress.py", line 166
    " called when the status changed "
                                     ^
TabError: inconsistent use of tabs and spaces in indentation
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.5/site-packages/apport/report.py", line 21, in <module>
    import fileutils
  File "/usr/lib/python2.5/site-packages/apport/fileutils.py", line 16, in <module>
    from packaging_impl import impl as packaging
  File "/usr/lib/python2.5/site-packages/apport/packaging_impl.py", line 18, in <module>
    import apt
  File "/usr/lib/python2.5/site-packages/apt/__init__.py", line 8, in <module>
    from apt.cache import Cache
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 24, in <module>
    import apt.progress
  File "/usr/lib/python2.5/site-packages/apt/progress.py", line 166
    " called when the status changed "
                                     ^
TabError: inconsistent use of tabs and spaces in indentation

Original exception was:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook
    from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.5/site-packages/apport/report.py", line 21, in <module>
    import fileutils
  File "/usr/lib/python2.5/site-packages/apport/fileutils.py", line 16, in <module>
    from packaging_impl import impl as packaging
  File "/usr/lib/python2.5/site-packages/apport/packaging_impl.py", line 18, in <module>
    import apt
  File "/usr/lib/python2.5/site-packages/apt/__init__.py", line 8, in <module>
    from apt.cache import Cache
  File "/usr/lib/python2.5/site-packages/apt/cache.py", line 24, in <module>
    import apt.progress
  File "/usr/lib/python2.5/site-packages/apt/progress.py", line 166
    " called when the status changed "
                                     ^
TabError: inconsistent use of tabs and spaces in indentation
>>>
$ exit
exit

Script done on Wed Nov 12 04:37:53 2008



--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 0.7.9~exp2

We believe that the bug you reported is fixed in the latest version of
python-apt, which is due to be installed in the Debian FTP archive:

python-apt-dbg_0.7.9~exp2_i386.deb
  to pool/main/p/python-apt/python-apt-dbg_0.7.9~exp2_i386.deb
python-apt_0.7.9~exp2.dsc
  to pool/main/p/python-apt/python-apt_0.7.9~exp2.dsc
python-apt_0.7.9~exp2.tar.gz
  to pool/main/p/python-apt/python-apt_0.7.9~exp2.tar.gz
python-apt_0.7.9~exp2_i386.deb
  to pool/main/p/python-apt/python-apt_0.7.9~exp2_i386.deb



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 505443@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Vogt <mvo@debian.org> (supplier of updated python-apt 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@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 16 Jan 2009 11:28:17 +0100
Source: python-apt
Binary: python-apt python-apt-dbg
Architecture: source i386
Version: 0.7.9~exp2
Distribution: experimental
Urgency: low
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Michael Vogt <mvo@debian.org>
Description: 
 python-apt - Python interface to libapt-pkg
 python-apt-dbg - Python interface to libapt-pkg (debug extension)
Closes: 456113 478171 481562 481563 481878 494259 505443
Changes: 
 python-apt (0.7.9~exp2) experimental; urgency=low
 .
   [ Julian Andres Klode ]
   * apt/*.py:
     - Almost complete cleanup of the code
     - Remove inconsistent use of tabs and spaces (Closes: #505443)
     - Improved documentation
   * apt/debfile.py:
     - Drop get*() methods, as they are deprecated and were
       never in a stable release
     - Make DscSrcPackage working
   * apt/gtk/widgets.py:
     - Fix the code and document the signals
   * Introduce new documentation build with Sphinx
     - Contains style Guide (Closes: #481562)
     - debian/rules: Build the documentation here
     - setup.py: Remove pydoc building and add new docs.
     - debian/examples: Include examples from documentation
     - debian/python-apt.docs:
       + Change html/ to build/doc/html.
       + Add build/doc/text for the text-only documentation
   * setup.py:
     - Only create build/data when building, not all the time
     - Remove build/mo and build/data on clean -a
   * debian/control:
     - Remove the Conflicts on python2.3-apt, python2.4-apt, as
       they are only needed for oldstable (sarge)
     - Build-Depend on python-sphinx (>= 0.5)
   * aptsources/distinfo.py:
     - Allow @ in mirror urls (Closes: #478171) (LP: #223097)
   * Merge Ben Finney's whitespace changes (Closes: #481563)
   * Merge Ben Finney's do not use has_key() (Closes: #481878)
   * Do not use deprecated form of raise statement (Closes: #494259)
   * Add support for PkgRecords.SHA256Hash (Closes: #456113)
 .
   [ Michael Vogt ]
   * apt/package.py:
     - fix bug in candidateInstalledSize property
   * aptsources/distinfo.py:
     - fix too restrictive mirror url check
   * aptsources/distro.py:
     - only add nearest_server and server to the mirrors if
       they are defined
Checksums-Sha1: 
 5e31427cde7300616b1b8d5c938632726b564b29 1079 python-apt_0.7.9~exp2.dsc
 6481808e7d1d91951b7f3356de89d4725af6c413 670392 python-apt_0.7.9~exp2.tar.gz
 e47d0ede8d9fc471d02a7fcc79cccc9e2ba61836 386200 python-apt_0.7.9~exp2_i386.deb
 38bbd1d304382fce45aac89457eb36779b813c64 1437742 python-apt-dbg_0.7.9~exp2_i386.deb
Checksums-Sha256: 
 57e3cad251b28ba45ebced1df77a0d1128ec1360a85b57e1d048edf80b42c432 1079 python-apt_0.7.9~exp2.dsc
 717a9a07d46ed8e31057686587e8fdf9fde3047ffd9f93b605b9f71c0f20a8b8 670392 python-apt_0.7.9~exp2.tar.gz
 830e5ed2e1a20e1886a8c02ff45e4aa1835b0ba2269b8c0966851638156748be 386200 python-apt_0.7.9~exp2_i386.deb
 96323ecebbb42d98115d5ce4eebaa5c60c1bb6c587e7525ef623656ae028fb13 1437742 python-apt-dbg_0.7.9~exp2_i386.deb
Files: 
 33545759aca206aeb74f22f44359f66d 1079 python optional python-apt_0.7.9~exp2.dsc
 3d805822c02ef1ffcc3ecd5fcdad2816 670392 python optional python-apt_0.7.9~exp2.tar.gz
 8c295d9c9016f4b27ef1fe400ae952a3 386200 python optional python-apt_0.7.9~exp2_i386.deb
 fe2d79cfbe58162f92ecc96987709f48 1437742 python extra python-apt-dbg_0.7.9~exp2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklwZngACgkQliSD4VZixzQPhQCfVzqe8dvEJDFB363IbVL49fbe
IYYAn0boZ2j4BRKfc4nhPuSSVWFaCyNt
=MSXH
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: