stats plugin crashes

Bug #199712 reported by blakef
2
Affects Status Importance Assigned to Milestone
bzr-stats
Invalid
Undecided
Unassigned

Bug Description

Hi not sure if a plugin bug report belongs here, so apologies in advance if I've got it wrong. I was trying out the 'stats' plugin by typing 'bzr stats', which resulted in a crash.

--

bzr: ERROR: exceptions.NameError: global name 'bzrlib' is not defined

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/blakef/.bazaar/plugins/stats/__init__.py", line 224, in run
    info = get_info(a_branch.repository, last_rev)
  File "/home/blakef/.bazaar/plugins/stats/__init__.py", line 116, in get_info
    pb = bzrlib.ui.ui_factory.nested_progress_bar()
NameError: global name 'bzrlib' is not defined

bzr 1.0.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'stats']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'
plugins:
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent /usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  stats /home/blakef/.bazaar/plugins/stats [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
Dan Watkins (oddbloke) wrote :

Hi,

Thanks for the bug report! I can't actually reproduce this bug locally, and it seems that the codebase has changed relative to what you have. Could you check that you're running the most recent trunk[0] revision of the plugin and, if not, could you try again with that?

Thanks,

Dan

[Footnote 0: https://code.edge.launchpad.net/~bzr/bzr-stats/trunk]

Changed in bzr-stats:
status: New → Incomplete
Revision history for this message
blakef (blakef) wrote : Re: [Bug 199712] Re: stats plugin crashes

Hi Dan,

Happy to report that all is well, and I've learnt a lesson about getting
the most up-to-date version before posting a bug report.

blakef@genshi:~/.bazaar/plugins/trunk$ bzr stats
getting ancestry
getting revisions
  13 John Arbash Meinel <email address hidden>
   6 Jelmer Vernooij <email address hidden>
   1 Wesley J. Landaker <email address hidden>

Thanks for helping out!

-Blake

On Sat, Mar 08, 2008 at 11:30:18AM -0000, Daniel Watkins wrote:
> Hi,
>
> Thanks for the bug report! I can't actually reproduce this bug locally,
> and it seems that the codebase has changed relative to what you have.
> Could you check that you're running the most recent trunk[0] revision of
> the plugin and, if not, could you try again with that?
>
>
> Thanks,
>
> Dan
>
> [Footnote 0: https://code.edge.launchpad.net/~bzr/bzr-stats/trunk]
>
> ** Changed in: bzr-stats
> Status: New => Incomplete
>
> --
> stats plugin crashes
> https://bugs.launchpad.net/bugs/199712
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Statistics plugin for Bazaar: Incomplete
>
> Bug description:
> Hi not sure if a plugin bug report belongs here, so apologies in advance if I've got it wrong. I was trying out the 'stats' plugin by typing 'bzr stats', which resulted in a crash.
>
> --
>
> bzr: ERROR: exceptions.NameError: global name 'bzrlib' is not defined
>
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
> return run_bzr(argv)
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758, in run_bzr
> ret = run(*run_argv)
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
> return self.run(**all_cmd_args)
> File "/home/blakef/.bazaar/plugins/stats/__init__.py", line 224, in run
> info = get_info(a_branch.repository, last_rev)
> File "/home/blakef/.bazaar/plugins/stats/__init__.py", line 116, in get_info
> pb = bzrlib.ui.ui_factory.nested_progress_bar()
> NameError: global name 'bzrlib' is not defined
>
> bzr 1.0.0 on python 2.5.1.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'stats']
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'
> plugins:
> launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
> multiparent /usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
> stats /home/blakef/.bazaar/plugins/stats [unknown]
> *** Bazaar has encountered an internal error.
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
> including this traceback, and a description of what you
> were doing when the error occurred.
>

Revision history for this message
Dan Watkins (oddbloke) wrote :

Blake,

Glad I could help. Marking this as Invald now.

Dan

Changed in bzr-stats:
status: Incomplete → Invalid
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.