Bazaar Explorer crashes on start

Bug #1282940 reported by demicoder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
New
Undecided
Unassigned

Bug Description

arshdeep@Jarvis-XPS-L502X:~$ bzr explorer
bzr: ERROR: exceptions.UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 0: invalid start byte

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 1141, 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/plugins/explorer/lib/commands.py", line 162, in run
    hat=hat, desktop=desktop, dry_run=dry_run, _script=script)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/explorer.py", line 208, in __init__
    gettext("Working Tree"))
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/wt_browser.py", line 49, in __init__
    self._browser = _QBrowseStyleBrowser(action_callback, browse_action, self)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/wt_browser.py", line 450, in __init__
    self._action_panel.set_selection, self._filter_panel.get_filter)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/wt_browser.py", line 685, in __init__
    _QBrowseTreeWidget.__init__(self, *args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/explorer/lib/wt_browser.py", line 628, in __init__
    treewidget.TreeWidget.__init__(self, *args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/treewidget.py", line 1357, in __init__
    self.create_context_menu()
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/treewidget.py", line 1693, in create_context_menu
    if has_ext_diff():
  File "/usr/lib/python2.7/dist-packages/bzrlib/lazy_import.py", line 116, in __call__
    obj = object.__getattribute__(self, '_resolve')()
  File "/usr/lib/python2.7/dist-packages/bzrlib/lazy_import.py", line 85, in _resolve
    obj = factory(self, scope, name)
  File "/usr/lib/python2.7/dist-packages/bzrlib/lazy_import.py", line 200, in _import
    module = __import__(module_python_path, scope, scope, [member], level=0)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/diff.py", line 42, in <module>
    default_diff = qconfig.get_option("default_diff")
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/util.py", line 128, in get_option
    self._load()
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/util.py", line 109, in _load
    encoding='utf-8')
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1230, in __init__
    self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1290, in _load
    infile = self._handle_bom(infile)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1431, in _handle_bom
    return self._decode(infile, self.encoding)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1491, in _decode
    return infile.decode(encoding).splitlines(True)
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9a in position 0: invalid start byte

bzr 2.6b2 on python 2.7.3 (Linux-3.5.0-42-generic-x86_64-with-
    Ubuntu-12.10-quantal)
arguments: ['/usr/bin/bzr', 'explorer']
plugins: bash_completion[2.6b2], changelog_merge[2.6b2], explorer[1.3.0],
    launchpad[2.6b2], netrc_credential_store[2.6b2], news_merge[2.6b2],
    po_merge[2.6b2], qbzr[0.22.2], weave_fmt[2.6b2]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_IN'

*** 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
Vincent Ladeuil (vila) wrote :

But basically, check your qbzr config files, one of them at least contains garbage.

More recent versions of bzr/qbzr may give better error messages so upgrading (quantal is EOLed or soon will be anyway).

affects: bzr → qbzr
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.