[spambayes-dev] [Spambayes] Bug solution for Spambayes

Dale Schroeder dale at BriannasSaladDressing.com
Wed May 4 23:23:20 CEST 2011


On 03/08/2011 7:28 PM, skip at pobox.com wrote:
>      Dale>  Although the build happens and the correct dependencies are
>      Dale>  applied, this is what I got when I tried to run it.
>
>      Dale>  Traceback (most recent call last):
>      Dale>     File "/usr/bin/sb_server.py", line 96, in<module>
>      Dale>       from spambayes import Dibbler
>      Dale>     File "/usr/lib/python2.5/site-packages/spambayes/Dibbler.py", line 186, in<module>
>      Dale>       from spambayes import asyncore, asynchat
>      Dale>  ImportError: cannot import name asyncore
>
> Hmmm...  Looks like asyncore (and probably asynchat) probably didn't make it
> into the distribution.  I maybe have a messed up manifest.  I'll take a
> look.
>
> Skip
>

Well, today Debian provided an update to python that prevents the use of 
all Spambayes versions.
I had been running 1.1a6 with python 2.5.  Attempting that combination 
now yields:

     Traceback ( most recent call last):
         File "/usr/bin/sb_server.py", line 93, in <module>
             import spambayes.message
ImportError: No module named spambayes.message

Summarizing the current situation:

The official Debian version of 1.04 starts and allows email through, but 
training yields only error messages and no actual training occurs.
Version 1.1a6 will not start due to the spambayes.message module problem 
mentioned above.
Version 1.1b1 has the problems with asyncore and asynchat outlined at 
the top and also will not start.

I don't really know how to proceed at this point.

Thanks,
Dale

_Current python packages:_

ii  libpython2.6                       2.6.6-10
ii  python2.5                          2.5.5-11
ii  python2.5-minimal                  2.5.5-11
ii  python2.6                          2.6.6-10
ii  python                             2.6.6-14
ii  python2.6-minimal                  2.6.6-10
ii  python-cairo                       1.8.8-1+b1
ii  python-central                     0.6.17
ii  python-dbus                        0.83.1-1+b1
ii  python-dns                         2.3.5-2
ii  python-gobject                     2.28.3-2
ii  python-gobject-cairo               2.28.3-2
ii  python-imaging                     1.1.7-2+b1
ii  python-lockfile                    1:0.8-2
ii  python-minimal                     2.6.6-14
ii  python-pexpect                     2.3-1
ii  python-pkg-resources               0.6.15-2
ii  python-setuptools                  0.6.15-2
ii  python-support                     1.0.13


_Version 1.04 training errors:_

*Training... *


      *500 Server error*

*Traceback (most recent call last):

   File "/usr/lib/pymodules/python2.6/spambayes/Dibbler.py", line 470, in found_terminator
     getattr(plugin, name)(**params)

   File "/usr/lib/pymodules/python2.6/spambayes/ProxyUI.py", line 399, in onReview
     self.flush()

   File "/usr/lib/pymodules/python2.6/spambayes/Dibbler.py", line 706, in flush
     return self._handler.flush()

   File "/usr/lib/pymodules/python2.6/spambayes/Dibbler.py", line 221, in flush
     while (self.producer_fifo or self.ac_out_buffer) and not self._closed:

   File "/usr/lib/python2.6/asyncore.py", line 406, in __getattr__
     %(self.__class__.__name__, attr))

AttributeError: _HTTPHandler instance has no attribute 'ac_out_buffer'
*


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/spambayes-dev/attachments/20110504/489f92c0/attachment.html>


More information about the spambayes-dev mailing list