spambayes issues a sets-related DeprecationWarning from classifier.py:43

Bug #399422 reported by Christian Reis
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
spambayes (Debian)
Fix Released
Unknown
spambayes (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am using spambayes from Jaunty:

  ii spambayes 1.0.4-5.1 Python-based spam filter using statistical analysi

When you run it from procmail you get this nice warning in your procmail log:

  /usr/lib/python2.6/dist-packages/spambayes/classifier.py:43: DeprecationWarning: the sets module is deprecated
  from sets import Set

If you don't want the warning, you need to patch spambayes with something like the patch available at
https://fedorahosted.org/suds/ticket/55 -- basically making the import conditional on the Python version.

Tags: patch
Revision history for this message
Christian Reis (kiko) wrote :

Your .procmailrc needs to contain something like this to reproduce:

 LOGFILE=$HOME/.proclog # recommended
 LOGABSTRACT=all

 #
 # Spamassassin tagging
 #

 :0 fw:hamlock
 | /usr/bin/sb_filter.py

And you need spambayes set up to be able to filter properly.

affects: ubuntu → spambayes (Ubuntu)
Revision history for this message
Herbert Thielen (thielen) wrote :

The same is happening on Lucid with spambayes 1.0.4-5.1.

It produces the message e.g. with `trac-admin hotcopy` when trac-spamfilter is installed, which uses spambayes.

Revision history for this message
Herbert Thielen (thielen) wrote :

Similar warning in tokenizer.py:

/usr/lib/python2.6/dist-packages/spambayes/tokenizer.py:19: DeprecationWarning: the sets module is deprecated
  from sets import Set

Revision history for this message
Christian Reis (kiko) wrote :
Changed in spambayes (Debian):
status: Unknown → New
Barry Warsaw (barry)
Changed in spambayes (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
Barry Warsaw (barry)
Changed in spambayes (Ubuntu):
assignee: Barry Warsaw (barry) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in spambayes (Ubuntu):
status: New → Confirmed
Changed in spambayes (Debian):
status: New → Fix Released
Revision history for this message
Hugo Lefeuvre (hlef) wrote :

Changed status to fix-released: Bug fixed since 1.1b1-1, available in Utopic and Vivid.

Changed in spambayes (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.