supybot suffers Python Exception when help on Factoids is requested

Bug #235439 reported by Ralph Corderoy
4
Affects Status Importance Assigned to Milestone
supybot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: supybot

Ubuntu 8.04, supybot 0.83.3-1.

Getting help from the Factoids plugin consistently has problems. A
Python exception occurs which is logged and the IRC user is told to
contact the bot's admin. for more info. Factoids is unusual among
plugins in not letting the default `help' system handle the request.
Here's the logged backtrace.

DEBUG 2008-05-28T10:32:01 supybot Incoming message: :ralph!~ralph@87.112.227.73 PRIVMSG scrumpy :help factoids lock
DEBUG 2008-05-28T10:32:01 supybot findCallbacksForArgs: [(<Config Config <Config.plugin.Config object at 0x84e5eec>>, ['help']), (<Plugin Plugin <Plugin.plugin.Plugin object at 0x868912c>>, ['help']), (<Misc Misc <Misc.plugin.Misc object at 0x85f624c>>, ['help'])]
DEBUG 2008-05-28T10:32:01 supybot defaultPlugin: 'Misc'
INFO 2008-05-28T10:32:01 supybot help called by "ralph!~ralph@87.112.227.73".
DEBUG 2008-05-28T10:32:01 supybot args before <many for something>: ['factoids', 'lock']
DEBUG 2008-05-28T10:32:01 supybot args after <many for something>: ['lock']
DEBUG 2008-05-28T10:32:01 supybot args before <many for something>: ['lock']
DEBUG 2008-05-28T10:32:01 supybot args after <many for something>: []
DEBUG 2008-05-28T10:32:01 supybot State before call: State(args=[['factoids', 'lock']], kwargs={}, channel=None)
DEBUG 2008-05-28T10:32:01 supybot findCallbacksForArgs: [(<Factoids Factoids <Factoids.plugin.Factoids object at 0x84eafac>>, ['factoids', 'lock'])]
ERROR 2008-05-28T10:32:01 supybot Spec: [<many for something>]
ERROR 2008-05-28T10:32:01 supybot Received args: []
ERROR 2008-05-28T10:32:01 supybot Extra args: ['command']
ERROR 2008-05-28T10:32:01 supybot Uncaught exception in ['help'].
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/supybot/callbacks.py", line 1175, in _callCommand
    self.callCommand(command, irc, msg, *args, **kwargs)
  File "/var/lib/python-support/python2.5/supybot/utils/python.py", line 62, in g
    f(self, *args, **kwargs)
  File "/var/lib/python-support/python2.5/supybot/callbacks.py", line 1161, in callCommand
    method(irc, msg, *args, **kwargs)
  File "/var/lib/python-support/python2.5/supybot/commands.py", line 906, in newf
    f(self, irc, msg, args, *state.args, **state.kwargs)
  File "/var/lib/python-support/python2.5/supybot/plugins/Misc/plugin.py", line 199, in help
    irc.reply(cbs[0].getCommandHelp(command))
  File "/var/lib/python-support/python2.5/supybot/plugins/Factoids/plugin.py", line 109, in getCommandHelp
    return super(Factoids, self).getCommandHelp(self, command)
TypeError: getCommandHelp() takes exactly 2 arguments (3 given)
ERROR 2008-05-28T10:32:01 supybot Exception id: 0xe695c
DEBUG 2008-05-28T10:32:01 supybot Outgoing message: NOTICE ralph :An error has occurred and has been logged. Please contact this bot's administrator for more information.

Revision history for this message
James McCoy (jamessan) wrote :

You're running your own Supybot setup. This error is from the recent upstream release 0.83.4, not the packaged version of Supybot.

Changed in supybot (Ubuntu):
status: New → Invalid
Revision history for this message
James McCoy (jamessan) wrote :

Hmm, that doesn't actually seem to be the case. I missed the reported by date initially. This is a different bug that affected Factoids which is fixed in the recent 0.83.4 release. :)

Changed in supybot (Ubuntu):
status: Invalid → New
Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

Just to confirm, the above was definitely from Ubuntu 8.04, supybot 0.83.3-1, as stated.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package supybot - 0.83.4.1.ds-1

---------------
supybot (0.83.4.1.ds-1) unstable; urgency=low

  * New upstream version.
    - Requesting help for Factoids commands no longer errors out. (LP: #235439)
    - Regular expressions with multiple backslashes are properly parsed.
      (LP: #235500)
  * debian/control
    - Add Vcs-* fields.
    - Bump standards version to 3.8.1.0 - no changes needed.
    - Add python-feedparser to Recommends. (Closes: #490615)
    - Add python-simplejson | python (>= 2.6) to Recommends.
    - Add python-dateutil, python-dictclient to Suggests.
    - Add version to debhelper Build-Depends.
  * debian/rules:
    - Use stamp files as pre-requisites instead of the related phony targets.
    - Call dh_prep instead of dh_clean -k.
  * debian/watch: Call new debian/repack script to remove embedded copies of
    third-party code from new upstream tarballs.
  * debian/docs: Include FAQ and CONFIGURATION docs in the package.
  * Bump compat level to 7.

 -- <email address hidden> (Andres E. Rodriguez Lazo) Fri, 05 Jun 2009 16:50:57 +0100

Changed in supybot (Ubuntu):
status: New → Fix Released
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.