[Bug 1258446] [NEW] bzr crashes checking out a branch containing japanese characters

James Hunt 1258446 at bugs.launchpad.net
Fri Dec 6 09:07:34 UTC 2013


Public bug reported:

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)

** Affects: bzr (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 trusty

** Attachment added: "bzr.1000.2013-12-06T08:57.crash.gz"
   https://bugs.launchpad.net/bugs/1258446/+attachment/3924159/+files/bzr.1000.2013-12-06T08%3A57.crash.gz

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/1258446

Title:
  bzr crashes checking out a branch containing japanese characters

Status in “bzr” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/1258446/+subscriptions



More information about the foundations-bugs mailing list