sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
Bug #114798 reported by
Kevin Smith
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spambayes (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
After upgrading from edgy to fiesty, spambayes stopped working. Running sb_imapfilter gives this error:
kevins@aria:~$ cd /home/kevins/
File "/usr/bin/
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
kevins@
As a result, my spam filtering is completely broken and is doing nothing at all.
It looks like spambayes (sb_imapfilter) is not compatible with python 2.5, but python 2.5 has been installed as the default interpreter.
I am going to try to work around it by manually editing the #! line to point to python 2.4 specifically.
Related branches
description: | updated |
Changed in spambayes: | |
assignee: | nobody → adam-collard |
status: | Confirmed → In Progress |
To post a comment you must log in.
You might also try changing from __future__ import generators to import generators