[Bug 525342] [NEW] Deprecation warning in ConfigObj.__init__() causes crash

Launchpad Bug Tracker 525342 at bugs.launchpad.net
Thu Feb 17 09:34:52 UTC 2011


You have been subscribed to a public bug by Daniel Holbach (dholbach):

The current version of python-configobj in lucid (4.7.0-1) contains a
crash-inducing call to warnings.warn() in ConfigObj.__init__():

        if options is not None:
            import warnings
            warnings.warn('Passing in an options dictionary to ConfigObj() is ',
                          'deprecated. Use **options instead.',
                          DeprecationWarning, stacklevel=2)

As warnings.warn accepts at most 3 arguments, the first comma should
probably be something else, e.g. a plus sign.

This problem causes applications that use the deprecated options
dictionary to crash:

$ blueproximity 
Traceback (most recent call last):
  File "/usr/share/blueproximity/proximity.py", line 1274, in <module>
    config = ConfigObj(os.path.join(conf_dir, _('standard') + '.conf'),{'create_empty':True,'file_error':False,'configspec':conf_specs})
  File "/usr/lib/pymodules/python2.6/configobj.py", line 1206, in __init__
    DeprecationWarning, stacklevel=2)
TypeError: warn() takes at most 3 arguments (4 given)

The release notes for the latest upstream version, 4.7.1, indicates that
this problem has been adressed there:
http://pypi.python.org/pypi/configobj/4.7.1

ProblemType: Bug
Architecture: i386
Date: Sun Feb 21 16:48:59 2010
DistroRelease: Ubuntu 10.04
NonfreeKernelModules: nvidia
Package: python-configobj 4.7.0-1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-13.18-generic
SourcePackage: configobj
Uname: Linux 2.6.32-13-generic i686

** Affects: configobj (Ubuntu)
     Importance: Medium
     Assignee: James Westby (james-w)
         Status: Fix Released


** Tags: apport-bug i386 lucid
-- 
Deprecation warning in ConfigObj.__init__() causes crash
https://bugs.launchpad.net/bugs/525342
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is a direct subscriber.



More information about the Ubuntu-sponsors mailing list