ubuntu-bug uses deprecated attributes

Bug #591695 reported by David Stansby
42
This bug affects 5 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: apport

Running ubuntu-bug in Ubuntu 10.10 gives these errors:

$ ubuntu-bug gwibber
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  from gtk import _gtk
ImportError: No module named gi
/usr/lib/python2.6/dist-packages/apport/packaging_impl.py:93: DeprecationWarning: Attribute 'CurrentVer' of the 'apt_pkg.Package' object is deprecated, use 'current_ver' instead.
  cur_ver = self._apt_pkg(package)._pkg.CurrentVer
/usr/lib/python2.6/dist-packages/apport/packaging_impl.py:97: DeprecationWarning: Attribute 'DependsList' of the 'apt_pkg.Version' object is deprecated, use 'depends_list' instead.
  return [d[0].TargetPkg.Name for d in cur_ver.DependsList.get('Depends', []) +
/usr/lib/python2.6/dist-packages/apport/packaging_impl.py:98: DeprecationWarning: Attribute 'DependsList' of the 'apt_pkg.Version' object is deprecated, use 'depends_list' instead.
  cur_ver.DependsList.get('PreDepends', [])]
/usr/lib/python2.6/dist-packages/apport/packaging_impl.py:98: DeprecationWarning: Attribute 'TargetPkg' of the 'apt_pkg.Dependency' object is deprecated, use 'target_pkg' instead.
  cur_ver.DependsList.get('PreDepends', [])]
/usr/lib/python2.6/dist-packages/apport/packaging_impl.py:98: DeprecationWarning: Attribute 'Name' of the 'apt_pkg.Package' object is deprecated, use 'name' instead.
  cur_ver.DependsList.get('PreDepends', [])]

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apport 1.13.4-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.34-5.13-generic 2.6.34
Uname: Linux 2.6.34-5-generic i686
NonfreeKernelModules: wl
Architecture: i386
Date: Wed Jun 9 12:38:08 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: apport

Revision history for this message
David Stansby (dstansby-deactivatedaccount) wrote :
Revision history for this message
xteejx (xteejx) wrote :

I think considering there are 2 duplicates so far, this can be marked Confirmed.

Changed in apport (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

trunk r1774, thanks David!

Changed in apport (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.14-0ubuntu1

---------------
apport (1.14-0ubuntu1) maverick; urgency=low

  * New upstream release:
    - hookutils.py: Add new method attach_drm_info() to read and format
      /sys/class/drm/*. (desktop-maverick-xorg-gpu-freeze-reports)
    - packaging-apt-dpkg.py: Fix deprecated python-apt variables, thanks David
      Stansby. (LP: #591695)
    - launchpad.py: Fix crash on attachments which are named *.gz, but
      uncompressed. (LP: #574360)
    - hookutils.py, attach_gconf(): Fix defaults parsing for boolean keys.
      (LP: #583109)
  * debian/control: Bump p-distutils-extra build-dependency to 2.19, to ensure
    that we get a complete translation template. (LP: #533565)
 -- Martin Pitt <email address hidden> Wed, 16 Jun 2010 15:50:55 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.