bzr crashes checking out a branch containing japanese characters

Bug #1258446 reported by James Hunt
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Keywords Plugin
bzr (Ubuntu)

Bug Description

There seems to be a problem with apport - attempted to report this with apport-bug but although it uploaded, no bug report was opened, hence...

$ LANG=C LC_ALL= bzr branch lp:~akira-tanaka/upstart-cookbook-jp/trunk
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute '_ensure_utf8_re'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 673, in run_argv_aliases
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1507, in run
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 367, in sprout
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 435, in _sprout
    hardlink=hardlink, from_branch=result_branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 907, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1565, in initialize
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 2543, in build_tree
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 2642, in _build_tree
    accelerator_tree, hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 2713, in _create_files
    ContentFilterContext(tree_path, tree))
  File "/usr/lib/python2.7/dist-packages/bzrlib/filters/", line 163, in filtered_output_bytes
    chunks = filter.writer(chunks, context)
  File "/home/james/.bazaar/plugins/keywords/", line 264, in _xml_escape_kw_expander
    return _kw_expander(chunks, context, encoder=_xml_escape)
  File "/home/james/.bazaar/plugins/keywords/", line 254, in _kw_expander
  File "/home/james/.bazaar/plugins/keywords/", line 217, in expand_keywords
    expansion = encoder(expansion)
  File "/home/james/.bazaar/plugins/keywords/", line 239, in _xml_escape
AttributeError: 'module' object has no attribute '_ensure_utf8_re'

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2013-12-06T08:58.crash
if a bug-reporting window does not automatically appear.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: bzr 2.6.0-3ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-5.13-generic 3.12.2
Uname: Linux 3.12.0-5-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.12.7-0ubuntu1
Architecture: i386
CurrentDesktop: Unity
Date: Fri Dec 6 08:59:00 2013
InstallationDate: Installed on 2010-10-21 (1142 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
SourcePackage: bzr
UpgradeStatus: Upgraded to trusty on 2013-11-01 (34 days ago)

Revision history for this message
James Hunt (jamesodhunt) wrote :
Revision history for this message
James Hunt (jamesodhunt) wrote :

Problem turned out to be the bzr-keywords plugin. Moving ~/.bazaar/plugins/keywords aside allows the branch to work as expected.

Changed in bzr (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers