SpamBayes broken, TypeError when adding.

Bug #994287 reported by Deepy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Quotient
Fix Committed
Undecided
Unassigned

Bug Description

I have SpamBayes 1.1b1 installed and get the following Traceback when attemptin to Endow the product to an user.

        Traceback (most recent call last):
          File "/home/alex/newdiv/lib/python2.6/site-packages/twisted/internet/defer.py", line 134, in maybeDeferred
            result = f(*args, **kw)
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/liveform.py", line 938, in invoke
            result.addCallback(lambda params: self.callable(**params))
          File "/home/alex/newdiv/lib/python2.6/site-packages/twisted/internet/defer.py", line 301, in addCallback
            callbackKeywords=kw)
          File "/home/alex/newdiv/lib/python2.6/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
            self._runCallbacks()
        --- <exception caught here> ---
          File "/home/alex/newdiv/lib/python2.6/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
            current.result = callback(current.result, *args, **kw)
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/liveform.py", line 938, in <lambda>
            result.addCallback(lambda params: self.callable(**params))
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/webadmin.py", line 261, in _endow
            subs.transact(endowall)
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/store.py", line 1808, in transact
            result = f(*a, **k)
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/webadmin.py", line 260, in endowall
            getattr(product, self.which)(subs)
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/product.py", line 40, in installProductOn
            userstore.transact(install)
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/store.py", line 1802, in transact
            return f(*a, **k)
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/product.py", line 39, in install
            i.install()
          File "/home/alex/Projects/Divmod/trunk/Mantissa/xmantissa/product.py", line 103, in install
            it = self.store.findOrCreate(namedAny(typeName))
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/store.py", line 1384, in findOrCreate
            newItem = userItemClass(store=self, **attrs)
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/item.py", line 646, in __init__
            self.__subinit__(**kw)
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/item.py", line 627, in __subinit__
            self.store = tostore
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/slotmachine.py", line 168, in __setattr__
            setter(self, value)
          File "/home/alex/Projects/Divmod/trunk/Axiom/axiom/item.py", line 551, in set
            self.activate()
          File "/home/alex/Projects/Divmod/trunk/Quotient/xquotient/spam.py", line 396, in activate
            self.guesser = hammie.Hammie(c)
        exceptions.TypeError: __init__() takes exactly 3 arguments (2 given)

Related branches

Revision history for this message
Jean-Paul Calderone (exarkun) wrote :

I changed the usage to make the Hammies read-only. Quotient still does its own persistence of the modifications. Perhaps someday it would be better to let spambayes do that, but this is the minimal change to fix this bug, for now.

It's not backwards compatible, though. Quotient will only work with the newer versions of spambayes now. That's fine with me, since I just upgraded my deployment. :)

Changed in quotient:
status: New → Fix Committed
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.