Re: [Spambayes] Bug solution for Spambayes

[email protected]
Newsgroups gmane.mail.spam.spambayes.devel,gmane.mail.spam.spambayes.general
Message-ID <[email protected]>
    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
    
    Dale>     Hmmm...  Looks like asyncore (and probably asynchat) probably
    Dale>     didn't make it into the distribution.  I maybe have a messed
    Dale>     up manifest.  I'll take a look.

My apologies for not getting to this sooner.
    
    Dale> Well, today Debian provided an update to python that prevents the
    Dale> use of all Spambayes versions.  I had been running 1.1a6 with
    Dale> python 2.5.  Attempting that combination now yields:

    ...

    Dale> Version 1.1b1 has the problems with asyncore and asynchat outlined
    Dale> at the top and also will not start.

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

As it turns out distutils has a bug which causes it to not rebuild the
MANIFEST file in many situations, so the new asyncore and asynchat modules
were not incorporated into the original 1.1b1 release.  I fixed that problem
today and created a new 1.1b1 source release.  It's available in the usual
place:

    http://pypi.python.org/pypi?:action=display&name=spambayes

Before uploading it I verified that the new files were included:

    % tar tfz dist/spambayes-1.1b1.tar.gz | egrep async
    spambayes-1.1b1/Outlook2000/dialogs/async_processor.py
    spambayes-1.1b1/spambayes/asynchat.py
    spambayes-1.1b1/spambayes/asyncore.py

Please have the Debian folks regenerate their SpamBayes package.

-- 
Skip Montanaro - [email protected] - http://www.smontanaro.net/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.