Package: spambayes
Version: 1.0.4-4
Severity: normal
(Submitting a new report even though this is related to #476274,
because since the program now runs, it's probably not "grave" anymore,
and it's somewhat a separate issue.)
When I try to install the spambayes 1.0.4-4 package using Aptitude, it
now correctly tries to compile the spambayes code for Python 2.5, but
gives me an error similar to that reported by Drew Hess in #476274:
"""
Setting up spambayes (1.0.4-4) ...
Compiling /usr/lib/python2.5/site-packages/spambayes/Corpus.py ...
File "/usr/lib/python2.5/site-packages/spambayes/Corpus.py", line 82
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling /usr/lib/python2.5/site-packages/spambayes/FileCorpus.py ...
File "/usr/lib/python2.5/site-packages/spambayes/FileCorpus.py", line 85
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
Compiling /usr/lib/python2.5/site-packages/spambayes/message.py ...
File "/usr/lib/python2.5/site-packages/spambayes/message.py", line 78
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
pycentral: pycentral pkginstall: error byte-compiling files (49)
pycentral pkginstall: error byte-compiling files (49)
dpkg: error processing spambayes (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
spambayes
E: Sub-process /usr/bin/dpkg returned an error code (1)
"""
My wild guess is that the debian/patches/fix_import_future.dpatch
stuff that Drew Hess mentioned re the Ubuntu version might not have
been included in this version of the Debian package.
When I run sb_filter.py, it seems to function, despite postinst
failing. I don't know for sure whether it's actually working or just
pretending to work.
---> Drake Wilson
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24.2 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages spambayes depends on:
ii python 2.5.2-0.1 An interactive high-level object-o
ii python-central 0.6.2 register and build utility for Pyt
spambayes recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]