Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated

Bug #548623 reported by syldeb35
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
Fix Released
Medium
Michael Vogt
Lucid
Fix Released
Medium
Michael Vogt
python-apt (Ubuntu)
Fix Released
Medium
Michael Vogt
Lucid
Fix Released
Medium
Michael Vogt
software-center (Ubuntu)
Fix Released
Medium
Michael Vogt
Lucid
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: apt-xapian-index

Error message in mail each morning:

/etc/cron.daily/apt:
/usr/share/apt-xapian-index/plugins/apttags.py:28: DeprecationWarning: Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated, use 'find_file' instead.
  file = apt.apt_pkg.Config.FindFile("Dir::Cache::pkgcache")
/usr/share/apt-xapian-index/plugins/descriptions.py:25: DeprecationWarning: Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated, use 'find_file' instead.
  file = apt.apt_pkg.Config.FindFile("Dir::Cache::pkgcache")
/usr/share/apt-xapian-index/plugins/origin.py:26: DeprecationWarning: Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated, use 'find_file' instead.
  file = apt.apt_pkg.Config.FindFile("Dir::Cache::pkgcache")
/usr/share/apt-xapian-index/plugins/sections.py:24: DeprecationWarning: Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated, use 'find_file' instead.
  file = apt.apt_pkg.Config.FindFile("Dir::Cache::pkgcache")
/usr/share/apt-xapian-index/plugins/sizes.py:24: DeprecationWarning: Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated, use 'find_file' instead.
  file = apt.apt_pkg.Config.FindFile("Dir::Cache::pkgcache")
/usr/share/apt-xapian-index/plugins/software-center.py:31: DeprecationWarning: Attribute 'FindFile' of the 'apt_pkg.Configuration' object is deprecated, use 'find_file' instead.
  file = apt.apt_pkg.Config.FindFile("Dir::Cache::pkgcache")

ProblemType: Bug
Architecture: amd64
CheckboxSubmission: 5a9ce4929743802693836978fa48f237
CheckboxSystem: b1865df84255b8716d3bcc269ff410d1
Date: Fri Mar 26 09:14:12 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: apt-xapian-index 0.22
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=fr_FR.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-17.26-generic 2.6.32.10+drm33.1
SourcePackage: apt-xapian-index
Uname: Linux 2.6.32-17-generic x86_64

Revision history for this message
syldeb35 (sylvain-debray) wrote :
Mingming Ren (portis25)
Changed in apt-xapian-index (Ubuntu):
status: New → Confirmed
Kees Cook (kees)
Changed in software-center (Ubuntu):
status: New → Confirmed
Changed in python-apt (Ubuntu):
status: New → Confirmed
Changed in python-apt (Ubuntu Lucid):
importance: Undecided → Medium
assignee: nobody → Michael Vogt (mvo)
milestone: none → ubuntu-10.04-beta-2
Revision history for this message
Julian Andres Klode (juliank) wrote :

mvo, your patch to disable the warnings only worked when 'apt' was imported, but not for applications using just apt_pkg and apt_inst. I have attached a patch for this specific problem, but I will enhance it tomorrow to cover all warnings. This will also solve the problem that your patch disables any DeprecationWarning.

Revision history for this message
Julian Andres Klode (juliank) wrote :

You should be able to just pull the attached merge directive into the ubuntu branch and upload. This should fix all problems.

Revision history for this message
Michael Vogt (mvo) wrote :

The apt-xapian-index bug is fixed with the latest sync from debian/testing

Changed in apt-xapian-index (Ubuntu Lucid):
assignee: nobody → Michael Vogt (mvo)
importance: Undecided → Medium
status: Confirmed → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

The software-center got upgraded to the new API too.

Changed in software-center (Ubuntu Lucid):
assignee: nobody → Michael Vogt (mvo)
importance: Undecided → Medium
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-apt - 0.7.94.2ubuntu4

---------------
python-apt (0.7.94.2ubuntu4) lucid; urgency=low

  * If PYTHON_APT_DEPRECATION_WARNINGS is unset, also disable the
    deprecation warnings in apt_pkg directly; and don't just
    disable any deprecation warning in apt/__init__.py (LP: #548623)
 -- Julian Andres Klode <email address hidden> Mon, 29 Mar 2010 13:18:20 +0200

Changed in python-apt (Ubuntu Lucid):
status: Confirmed → 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.