Re: Bug solution for Spambayes
Dale Schroeder <[email protected]> Wed, 04 May 2011 16:23:20 -0500
| Newsgroups | gmane.mail.spam.spambayes.general,gmane.mail.spam.spambayes.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0013775752== Content-Type: multipart/alternative; boundary="------------010503000005070407010109" This is a multi-part message in MIME format. --------------010503000005070407010109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 03/08/2011 7:28 PM, [email protected] 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' * --------------010503000005070407010109 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> On 03/08/2011 7:28 PM, <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> wrote: <blockquote cite="mid:[email protected]" type="cite"> <pre wrap=""> 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 </pre> </blockquote> <br> Well, today Debian provided an update to python that prevents the use of all Spambayes versions.<br> I had been running 1.1a6 with python 2.5. Attempting that combination now yields:<br> <br> Traceback ( most recent call last):<br> File "/usr/bin/sb_server.py", line 93, in <module><br> import spambayes.message<br> ImportError: No module named spambayes.message<br> <br> Summarizing the current situation:<br> <br> The official Debian version of 1.04 starts and allows email through, but training yields only error messages and no actual training occurs.<br> Version 1.1a6 will not start due to the spambayes.message module problem mentioned above.<br> Version 1.1b1 has the problems with asyncore and asynchat outlined at the top and also will not start.<br> <br> I don't really know how to proceed at this point.<br> <br> Thanks,<br> Dale<br> <br> <u>Current python packages:</u><br> <br> <pre wrap="">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 </pre> <u>Version 1.04 training errors:</u><br> <div class="content" id="mainContent"> <p><b>Training... </b></p> <h3><b>500 Server error</b></h3> <pre><b>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' </b></pre> </div> <br> </body> </html> --------------010503000005070407010109-- --===============0013775752== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ [email protected] http://mail.python.org/mailman/listinfo/spambayes Info/Unsubscribe: http://mail.python.org/mailman/listinfo/spambayes Check the FAQ before asking: http://spambayes.sf.net/faq.html --===============0013775752==--