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

Bug #548623 reported by syldeb35 on 2010-03-26
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
apt-xapian-index (Ubuntu)
Medium
Michael Vogt
Lucid
Medium
Michael Vogt
python-apt (Ubuntu)
Medium
Michael Vogt
Lucid
Medium
Michael Vogt
software-center (Ubuntu)
Medium
Michael Vogt
Lucid
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

syldeb35 (sylvain-debray) wrote :
Mingming Ren (portis25) on 2010-03-26
Changed in apt-xapian-index (Ubuntu):
status: New → Confirmed
Kees Cook (kees) on 2010-03-27
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
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.

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.

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
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
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  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers