bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\u0301' in position 48: ordinal not in range(128)

Bug #997793 reported by Ariel E. Figueroa - http://www.humanytek.com
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Im trying to get a branch and bzr shows next traceback...

root@anaperez:/home/openerp# bzr branch lp:openerp-mexico-localization
bzr: warning: unsupported locale setting
  bzr could not set the application locale.
  Although this should be no problem for bzr itself, it might
  cause problems with some plugins. To investigate the issue,
  look at the output of the locale(1p) tool.
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character u'\u0301' in position 48: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 1131, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 695, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/builtins.py", line 1475, in run
    source_branch=br_from)
  File "/usr/lib/pymodules/python2.6/bzrlib/bzrdir.py", line 366, in sprout
    create_tree_if_local=create_tree_if_local)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 132, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.6/bzrlib/bzrdir.py", line 434, in _sprout
    hardlink=hardlink, from_branch=result_branch)
  File "/usr/lib/pymodules/python2.6/bzrlib/bzrdir.py", line 910, in create_workingtree
    accelerator_tree=accelerator_tree, hardlink=hardlink)
  File "/usr/lib/pymodules/python2.6/bzrlib/workingtree_4.py", line 1549, in initialize
    delta_from_tree=delta_from_tree)
  File "/usr/lib/pymodules/python2.6/bzrlib/transform.py", line 2536, in build_tree
    delta_from_tree)
  File "/usr/lib/pymodules/python2.6/bzrlib/transform.py", line 2591, in _build_tree
    pb.update(gettext("Building tree"), num - len(deferred_contents), total)
  File "/usr/lib/pymodules/python2.6/bzrlib/progress.py", line 116, in update
    self.ui_factory._progress_updated(self)
  File "/usr/lib/pymodules/python2.6/bzrlib/ui/text.py", line 374, in _progress_updated
    self._progress_view.show_progress(task)
  File "/usr/lib/pymodules/python2.6/bzrlib/ui/text.py", line 554, in show_progress
    self._repaint()
  File "/usr/lib/pymodules/python2.6/bzrlib/ui/text.py", line 536, in _repaint
    self._show_line(s)
  File "/usr/lib/pymodules/python2.6/bzrlib/ui/text.py", line 440, in _show_line
    self._term_file.write('\r' + s + '\r')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0301' in position 48: ordinal not in range(128)

bzr 2.5.0 on python 2.6.5 (Linux-2.6.32-31-server-x86_64-with-
    Ubuntu-10.04-lucid)
arguments: ['/usr/bin/bzr', 'branch', 'lp:openerp-mexico-localization']
plugins: bash_completion[2.5.0], changelog_merge[2.5.0], launchpad[2.5.0],
    netrc_credential_store[2.5.0], news_merge[2.5.0], po_merge[2.5.0],
    weave_fmt[2.5.0]
encoding: 'ascii', fsenc: 'utf8', lang: 'es_MX.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
cubells (cubells) wrote :

I've solved the problem setting up correctly the locales of my computer.

$ sudo locale-gen

Is It possible?

Revision history for this message
Martin Packman (gz) wrote :

See the existing bug entry for some workarounds, the fix will be in the next bzr release.

Revision history for this message
Martin Pascualon (martinfpas) wrote :

I have the same issue in windows. Any ideas?

Best Regards
Martin

Revision history for this message
Ariel E. Figueroa - http://www.humanytek.com (arielfigue) wrote :

Martin, in case of linux, the solution was a wrong locale configuration, i think in your case yo need check the regional configuration, regards!

Ariel

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.