[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
spambayes (1.0.4-3ubuntu2) gutsy; urgency=low * Update debian/patches/fix_import_future.dpatch to fix all instances of from future import not being at the start of the file. (LP: #114798) * Simplify debian/rules so unpatch actually works. * Remove dh_python from debian/rules (not needed) * Change maintainer to MOTU * Add build-dep on dpatch -- Scott Kitterman [EMAIL PROTECTED] Tue, 25 Sep 2007 23:56:28 -0400 ** Changed in: spambayes (Ubuntu) Status: Fix Committed = Fix Released -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
I'm making the assumption that after several months Adam had this assigned to himself for triaging and not for fixing. Working on a fix. ** Changed in: spambayes (Ubuntu) Assignee: Adam Collard (adam-collard) = Scott Kitterman (kitterman) -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
Fix uploaded for Gutsy. ** Changed in: spambayes (Ubuntu) Assignee: Scott Kitterman (kitterman) = (unassigned) Status: In Progress = Fix Committed -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
** Changed in: spambayes (Ubuntu) Assignee: (unassigned) = Adam Collard Status: Confirmed = In Progress -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
Thanks very much! I moved line 93 and now it runs...but I get this (after a long time): [EMAIL PROTECTED]:~$ cd /home/kevins/.spambayes/tavo;sb_imapfilter.py -c -t SpamBayes IMAP Filter Version 0.6 (January 2005) and engine SpamBayes Engine Version 0.3 (January 2004). Exception exceptions.TypeError: 'NoneType' object is not callable in bound method MessageInfoDB.__del__ of spambayes.message.MessageInfoDB object at 0x836778c ignored Exception exceptions.TypeError: 'NoneType' object is not callable in ignored Exception exceptions.TypeError: 'NoneType' object is not callable in ignored [EMAIL PROTECTED]:~/.spambayes/tavo$ Should I file it as a separate bug? -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
Yes. Please file that as a different bug. -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
You might also try changing from __future__ import generators to import generators ** Changed in: spambayes (Ubuntu) Importance: Undecided = Medium Status: Unconfirmed = Confirmed -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
The fix is to move line 93 (from __future__ import generators) to line 2 (between the #! line and the description starting in line 3) in sb_imapfilter.py. sb_dbexpimp.py and sb_notesfilter.py is also affected (other files might also be affected, I didn't grep all). The person fixing it might looked at sb_pop3dnd.py as this script does it right. ** Tags added: bitesize -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 114798] Re: sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports
List of files of package spambayes with __future__ imports. ** Attachment added: spambayes_future_imports.txt http://librarian.launchpad.net/7656163/spambayes_future_imports.txt -- sb_imapfilter fails to run under Python 2.5: SyntaxError: from __future__ imports https://bugs.launchpad.net/bugs/114798 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs