"bzr help branches" crashes with bzr: ERROR: exceptions.AttributeError: 'Option' object has no attribute 'get_help_topic'

Bug #941672 reported by David Glessner on 2012-02-26
52
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Bazaar
High
Jelmer Vernooij
2.5
High
Jelmer Vernooij
bzr (Ubuntu)
High
Jelmer Vernooij
Precise
High
Jelmer Vernooij

Bug Description

Had this happen while trying to figure out co-located branches. Completely repeatable. 2.5.0 was installed over 2.4.1 (I think).

$ bzr help branches
bzr: ERROR: exceptions.AttributeError: 'Option' object has no attribute 'get_help_topic'

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1131, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 695, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1148, in ignore_pipe
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 4815, in run
    bzrlib.help.help(topic)
  File "/Library/Python/2.6/site-packages/bzrlib/help.py", line 51, in help
    topic_obj.get_help_topic()))
AttributeError: 'Option' object has no attribute 'get_help_topic'

bzr 2.5.0 on python 2.6.1 (Darwin-10.8.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'help', 'branches']
plugins: bash_completion[2.5.0], bzrtools[2.5.0], changelog_merge[2.5.0],
    colo[0.4.0], email[unknown], explorer[1.2.2], extmerge[unknown],
    fastimport[0.13.0dev], git[0.6.7], keychain[0.1.0], launchpad[2.5.0],
    loom[2.2.1dev], netrc_credential_store[2.5.0], news_merge[2.5.0],
    pipeline[1.4.0], po_merge[2.5.0], qbzr[0.22.1], rewrite[0.6.3dev],
    svn[1.1.2], upload[1.0.1dev], weave_fmt[2.5.0], xmloutput[0.8.8]
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.

Jelmer Vernooij (jelmer) on 2012-02-27
Changed in bzr:
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer) on 2012-02-27
Changed in bzr:
milestone: none → 2.5.1
Jelmer Vernooij (jelmer) on 2012-02-27
Changed in bzr:
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
Stas Kalashnikov (halega) wrote :

C:\sk\bo-colo\trunk>bzr help branches
bzr: ERROR: exceptions.AttributeError: 'Option' object has no attribute 'get_help_topic'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 920, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1131, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 695, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\commands.pyo", line 1148, in ignore_pipe
  File "bzrlib\builtins.pyo", line 4815, in run
  File "bzrlib\help.pyo", line 52, in help
AttributeError: 'Option' object has no attribute 'get_help_topic'

bzr 2.5.0 on python 2.6.6 (Windows-7-6.1.7601-SP1)
arguments: ['bzr', 'help', 'branches']
plugins: bzrtools[2.5.0], changelog_merge[2.5.0], colo[0.4.0],
    explorer[1.2.2], fastimport[0.14.0dev], git[0.6.7], launchpad[2.5.0],
    loom[2.3.0dev], netrc_credential_store[2.5.0], news_merge[2.5.0],
    pipeline[1.4.0], qbzr[0.22.1], rewrite[0.6.4dev], svn[1.1.2],
    upload[1.0.1dev], xmloutput[0.8.8]
encoding: 'cp1251', fsenc: 'mbcs', lang: 'EN'

*** 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.

Jelmer Vernooij (jelmer) on 2012-03-10
Changed in bzr:
status: In Progress → Fix Released
Martin Packman (gz) on 2012-03-26
Changed in bzr:
milestone: 2.5.1 → 2.6b1
Jelmer Vernooij (jelmer) on 2012-05-28
Changed in bzr (Ubuntu):
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Changed in bzr (Ubuntu Precise):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer) wrote :

Matching debdiff for the SRU.

Hello David, or anyone else affected,

Accepted bzr into precise-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in bzr (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed

With the version of bzr in precise, I can confirm this crash when running 'bzr help branches' or 'bzr help tags' After installing the version from precise-proposed, I can successfully run both of those commands. There is no crash, and I received the expected help output.

tags: added: verification-done
removed: verification-needed
Colin D Bennett (colinb) wrote :
Download full text (3.2 KiB)

@Andrew Starr-Bochicchio (andrewsomething):
I also am running Ubuntu 12.04 (Precise) and I confirm the crash on 'bzr help tags' and 'bzr help branches'.

Ubuntu bzr package version: 2.5.0-2ubuntu2
Bazaar (bzr) 2.5.0
  Python interpreter: /usr/bin/python 2.7.3
  Python standard library: /usr/lib/python2.7
  Platform: Linux-3.2.0-25-generic-x86_64-with-Ubuntu-12.04-precise
  bzrlib: /usr/lib/python2.7/dist-packages/bzrlib
  Bazaar configuration: /home/cdb/.bazaar
  Bazaar log file: /home/cdb/.bzr.log

Note that "bzr --no-plugins help tags" works fine!!! Some plugin is causing the issue.
Is there any way to selectively enable or disable plugins one at a time, e.g. with a special command line option? It would be really painful to uninstall and reinstall all my plugin Ubuntu packages for this test and especially some packages may include multiple actual plugins.

List of plugins:
cdb@svelte:~/.bazaar/plugins$ bzr plugins
bash_completion 2.5.0
  Generate a shell function for bash command line completion.

bzrtools 2.5.0
  Various useful commands for working with bzr.

changelog_merge 2.5.0
  Merge hook for GNU-format ChangeLog files

dbus 0.1.0dev
  D-Bus integration for bzr/bzrlib.

explorer 1.2.2
  Version Control for Human Beings.

git 0.6.8
  A GIT branch and repository format implementation for bzr.

grep 0.5.0dev
  Print lines matching PATTERN for specified files and revisions.

gtk 0.104.0dev
  Graphical support for Bazaar using GTK.

launchpad 2.5.0
  Launchpad.net integration plugin for Bazaar.

netrc_credential_store 2.5.0
  Use ~/.netrc as a credential store for authentication.conf.

news_merge 2.5.0
  Merge hook for bzr's NEWS file.

po_merge 2.5.0
  Merge hook for ``.po`` files.

qbzr 0.22.2
  QBzr - Qt-based frontend for Bazaar

rewrite 0.6.3
  Rebase support.

svn 1.2.1
  Support for Subversion branches

weave_fmt 2.5.0
  Weave formats.

cdb@svelte:~/.bazaar/plugins$ bzr help tags
bzr: ERROR: exceptions.AttributeError: 'Option' object has no attribute 'get_help_topic'

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 920, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1131, 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 695, 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/commands.py", line 1148, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 4819, in run
    bzrlib.help.help(topic)
  File "/usr/lib/python2.7/dist-packages/bzrlib/help.py", line 51, in help
    topic_obj.get_help_topic()))
AttributeError: 'Option' object has no ...

Read more...

Colin D Bennett (colinb) wrote :

UPDATE: I discovered that bzr-svn is the culprit for 'bzr tags' crashing.

Ubuntu package bzr-svn 1.2.1-1. If I uninstall it, 'bzr tags' works OK.

Colin D Bennett (colinb) wrote :

P.S. This 'bzr tags' crash is completely different from the 'bzr help branches' crash, except that perhaps Bazaar could more gracefully catch issues in the plugins help system, and tell the user that "plugin X is missing help for topic Y".

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr - 2.5.1-0ubuntu1

---------------
bzr (2.5.1-0ubuntu1) precise-proposed; urgency=low

  * New upstream release.
   + Fixes handling of colocated branches in `bzr rmbranch`. LP: #920653
   + rmbranch now refuses to remove active branch. LP: #922953
   + Connecting with HTTPS via HTTP correctly uses host name of destination
     rather than that of proxy. LP: #944696
   + No longer requires tty when GPG signing commits. LP: #847388
   + Fixes unicode erorrs when translated progress task messages
     contain non-ascii text. LP: #966934
   + Fixes display of help for configuration options that overlap
     with other topics. LP: #941672
  * Drop 06_spurious_test_failure: applied upstream.
 -- Jelmer Vernooij <email address hidden> Mon, 28 May 2012 13:36:02 +0200

Changed in bzr (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers