TypeError: not all arguments converted during string formatting; encoding: 'utf-8', fsenc: 'UTF-8', lang: 'pt_BR.UTF-8'

Bug #1153330 reported by Daniel Minahim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar automirror plugin
New
Undecided
Unassigned

Bug Description

bzr: ERROR: exceptions.TypeError: not all arguments converted during string formatting

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1141, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 3689, in run
    lossy=lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree_4.py", line 218, in commit
    result = WorkingTree.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/mutabletree.py", line 211, in commit
    *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commit.py", line 290, in commit
    lossy=lossy)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commit.py", line 455, in _commit
    self._update_branches(old_revno, old_revid, new_revno)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commit.py", line 494, in _update_branches
    self.branch.set_last_revision_info(new_revno, self.rev_id)
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 218, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 2472, in set_last_revision_info
    self._run_post_change_branch_tip_hooks(old_revno, old_revid)
  File "/usr/lib/python2.7/dist-packages/bzrlib/branch.py", line 1203, in _run_post_change_branch_tip_hooks
    hook(params)
  File "/home/minahim/.bazaar/plugins/automirror/__init__.py", line 86, in branch_tip_change_hook
    Updater(branch, new_revid, branch.get_config()).mirror_to_targets()
  File "/home/minahim/.bazaar/plugins/automirror/updater.py", line 88, in mirror_to_targets
    trace.mutter("mirroring to targets " % self.targets())
TypeError: not all arguments converted during string formatting

bzr 2.6b2 on python 2.7.3 (Linux-3.5.0-25-lowlatency-x86_64-with-
    Ubuntu-12.10-quantal)
arguments: ['/usr/bin/bzr', 'commit', '-m', 'dataproc0']
plugins: automirror[0.1.0], bash_completion[2.6b2], bzrtools[2.5.0],
    changelog_merge[2.6b2], dbus[0.1.0dev], explorer[1.3.0],
    fastimport[0.13.0], git[0.6.9], grep[0.5.0dev], launchpad[2.6b2],
    loom[2.2.0], netrc_credential_store[2.6b2], news_merge[2.6b2],
    pipeline[1.4.0], po_merge[2.6b2], pqm[1.4.0dev], qbzr[0.22.2],
    rewrite[0.6.4dev], search[1.7.0dev], stats[0.2.0dev], svn[1.2.1],
    upload[1.0.1dev], weave_fmt[2.6b2]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'pt_BR.UTF-8'

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Vincent Ladeuil (vila) wrote :

Redirecting to bzr-automirror as hinted by the traceback.
You can disable the plugin for a command by doing:

   BZR_DISABLE_PLUGINS=automirror bzr commit -m dataproc0

But the bug seems to be unavoidable as far as the following python line is concerned:

    trace.mutter("mirroring to targets " % self.targets())

There is nothing the % operator can to 'self.target()'

affects: bzr → bzr-automirror
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.