Comment 9 for bug 56680

Revision history for this message
Saša Janiška (gour) wrote :

Hello,

today when I want to add some old project (book) under bzr, I've encountered this error.

Here is the trace:

bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xbe in position 6: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/builtins.py", line 650, in run
    no_recurse, action=action, save=not dry_run)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/mutabletree.py", line 50, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/bzrlib/mutabletree.py", line 558, in smart_add
    for subf in sorted(os.listdir(abspath)):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbe in position 6: ordinal not in range(128)

bzr 2.3.3 on python 2.7.1 (FreeBSD-9.0-CURRENT-amd64-64bit-ELF)
arguments: ['/usr/local/bin/bzr', 'add', '.']
plugins: bash_completion[2.3.3], bzrtools[2.3.1], colo[0.2.1],
    explorer[1.1.2], fastimport[0.11.0dev], git[0.6.0], launchpad[2.3.3],
    netrc_credential_store[2.3.3], news_merge[2.3.3], qbzr[0.20.0]
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.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.

Considering it's reported quite some time ago, it would be nice to fix it before 2.4.

Sincerely,
Gour