Re: SpamBayes 1.1a6 not working since upgrade Debian Lenny -> Squeeze (with Python 2.6.6)

Dale Schroeder <[email protected]>
Newsgroups gmane.mail.spam.spambayes.general
Message-ID <[email protected]>
I don't use procmail, so my error messages were different, but I was not 
able to make the latest Debian 2.6.* work with 1.1a6.  When I was using 
Squeeze, I had to run against python 2.5 to make 1.1a6 work.

That trick no longer works in Wheezy, but I have had success with Skip's 
latest 1.1b1 found at 
http://pypi.python.org/pypi?:action=display&name=spambayes 
<http://pypi.python.org/pypi?:action=display&name=spambayes> testing 
against python 2.5, 2.6, and 2.7.

The 1st thread is the Squeeze thread and the 2nd is the Wheezy thread.

http://mail.python.org/pipermail/spambayes/2011-January/022942.html
http://mail.python.org/pipermail/spambayes/2011-May/023004.html

Dale


On 06/15/2011 10:49 AM, Amedee Van Gasse wrote:
> A couple of days ago I upgraded my server from Debian Lenny to Debian
> Squeeze. Since then I'm seeing these lines in my procmail.log:
>
>
> Traceback (most recent call last):
>    File "/usr/bin/sb_filter.py", line 4, in<module>
>      import pkg_resources
>    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2671, in
> <module>
>      working_set.require(__requires__)
>    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in
> require
>      needed = self.resolve(parse_requirements(requirements))
>    File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in
> resolve
>      raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: spambayes==1.1a6
> procmail: Program failure (1) of "/usr/bin/sb_filter.py"
> procmail: Rescue of unfiltered data succeeded
>
>
> My best guess is that the Debian upgrade included an upgrade of Python,
> and that this is related to the messages that I'm seeing. This is my
> current version of Python:
>
>
> $ python --version
> Python 2.6.6
>
>
> According to the 1.0.4 release notes, the 1.1 version is built with Python
> 2.4.
> According to the 1.1a6 release notes, Python>= 2.4 is required. (your
> work, Skip)
>
>
>
> My questions are:
> * is SpamBayes 1.1a6 compatible with Python 2.6.6?
> * if yes: what is my next course of action to make it work again?
> * if no: how can I help? I have never written anything in Python but how
> hard can it be?
>
>
>
_______________________________________________
[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
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.