uses deprecated debian_bundle package

Bug #601002 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builder
Fix Released
Medium
Jelmer Vernooij

Bug Description

python-debian's main module is now just named "debian" and "debian_bundle" has been deprecated.

Launchpad's import fascist doesn't accept the deprecation warning of debian_bundle:

No handlers could be found for logger "bzr"
Traceback (most recent call last):
  File "./bin/test", line 205, in <module>
    from canonical.testing.customresult import filter_tests, patch_find_tests
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/canonical/testing/__init__.py", line 72, in <module>
    from canonical.testing.layers import *
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/canonical/testing/layers.py", line 115, in <module>
    from canonical.librarian.ftests.harness import LibrarianTestSetup
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/canonical/librarian/ftests/harness.py", line 20, in <module>
    from canonical.librarian.storage import _relFileLocation
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/canonical/librarian/storage.py", line 16, in <module>
    from canonical.librarian.db import write_transaction
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/canonical/librarian/db.py", line 20, in <module>
    from canonical.launchpad.database.librarian import (
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/canonical/launchpad/database/__init__.py", line 36, in <module>
    from lp.bugs.model.bug import *
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/lp/bugs/model/bug.py", line 109, in <module>
    from lp.registry.model.person import Person, ValidPersonCache
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/lib/lp/registry/model/person.py", line 36, in <module>
    from bzrlib.plugins.builder import RecipeParser
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/home/jelmer/lp/bzrplugins/builder/__init__.py", line 133, in <module>
    from debian_bundle import changelog
  File "/home/jelmer/lp/lib/lp/scripts/utilities/importfascist.py", line 186, in import_fascist
    module = original_import(name, globals, locals, fromlist, level)
  File "/usr/lib/pymodules/python2.6/debian_bundle/__init__.py", line 5, in <module>
    DeprecationWarning, stacklevel=2)
DeprecationWarning: please use 'debian' instead of 'debian_bundle'

Related branches

Jelmer Vernooij (jelmer)
Changed in bzr-builder:
status: New → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
James Westby (james-w)
Changed in bzr-builder:
status: In Progress → Fix Committed
James Westby (james-w)
Changed in bzr-builder:
importance: Undecided → Medium
James Westby (james-w)
Changed in bzr-builder:
milestone: none → 0.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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