bzr crashes checking out a branch containing japanese characters

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

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/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 1121, 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 1507, in run
    source_branch=br_from)
  File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 367, in sprout
    create_tree_if_local=create_tree_if_local)
  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/bzrdir.py", line 435, in _sprout
    hardlink=hardlink, from_branch=result_branch)
  File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 907, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree_4.py", line 1565, in initialize
    delta_from_tree=delta_from_tree)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 2543, in build_tree
    delta_from_tree)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 2642, in _build_tree
    accelerator_tree, hardlink)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transform.py", line 2713, in _create_files
    ContentFilterContext(tree_path, tree))
  File "/usr/lib/python2.7/dist-packages/bzrlib/filters/__init__.py", line 163, in filtered_output_bytes
    chunks = filter.writer(chunks, context)
  File "/home/james/.bazaar/plugins/keywords/keywords.py", line 264, in _xml_escape_kw_expander
    return _kw_expander(chunks, context, encoder=_xml_escape)
  File "/home/james/.bazaar/plugins/keywords/keywords.py", line 254, in _kw_expander
    encoder=encoder)]
  File "/home/james/.bazaar/plugins/keywords/keywords.py", line 217, in expand_keywords
    expansion = encoder(expansion)
  File "/home/james/.bazaar/plugins/keywords/keywords.py", line 239, in _xml_escape
    xml8._ensure_utf8_re()
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

Remote bug watches

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