On 05/05/2011 8:51 AM, s...@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
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.
No apologies necessary - just glad you're willing and able to do it.
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.
I went live with 1.1b1 today, and all has gone well. It also seems to
be somewhat faster than before.
Yesterday, I tested with python 2.6 and 2.7 - both worked.
For Debian users: I used python-stdeb to build the .deb package. Unlike
version 1.1a6, 1.1b1 would only work on the system on which it was built
- even though all python packages were of the same version between systems.
Specifically, the .deb that was built on the test system installed on
the production system, started on the production system, but would throw
error messages when attempting to train email. I did not put any effort
into finding out why this happened, so it may or may not be universally
applicable.
Skip, thank you very much for fixing this. It is much appreciated.
Alexandre, please consider making this version an official Debian package.
Dale
_______________________________________________
spambayes-dev mailing list
spambayes-dev@python.org
http://mail.python.org/mailman/listinfo/spambayes-dev