Bugs item #1758473, was opened at 2007-07-22 10:13
Message generated for change (Comment added) made by montanaro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1758473&group_id=61702
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.0.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Fred L. Drake, Jr. (fdrake)
>Assigned to: Skip Montanaro (montanaro)
Summary: Bad __future__ imports
Initial Comment:
Trying to install spambayes 1.0.4 as an egg (using setuptools via zc.buildout)
with Python 2.4.4 on Mac OS X resulted in these errors, caused by assignments
between the module docstrings and the __future__ imports:
warning: no files found matching '*.txt' under directory 'utilities'
File "build/bdist.macosx-10.3-i386/egg/spambayes/Corpus.py", line 82
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
File "build/bdist.macosx-10.3-i386/egg/spambayes/FileCorpus.py", line 85
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
File "build/bdist.macosx-10.3-i386/egg/spambayes/message.py", line 78
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
zip_safe flag not set; analyzing archive contents...
spambayes.resources.scanning__init__: module references __file__
File
"/Users/fdrake/env/dot_buildout/eggs/tmp_Rg577/spambayes-1.0.4-py2.5.egg/spambayes/Corpus.py",
line 82
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
File
"/Users/fdrake/env/dot_buildout/eggs/tmp_Rg577/spambayes-1.0.4-py2.5.egg/spambayes/FileCorpus.py",
line 85
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
File
"/Users/fdrake/env/dot_buildout/eggs/tmp_Rg577/spambayes-1.0.4-py2.5.egg/spambayes/message.py",
line 78
from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file
----------------------------------------------------------------------
>Comment By: Skip Montanaro (montanaro)
Date: 2007-07-23 19:06
Message:
Logged In: YES
user_id=44345
Originator: NO
Fred,
These were all fixed ages ago. It's not that the current code is
incorrect, just that we haven't had anything other than an alpha release
since 1.0.4 escaped.
I did find one more incorrectly positioned __future__ statement just now
though. That was checked into Subversion in rev 3154.
Thx,
Skip
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1758473&group_id=61702
_______________________________________________
Spambayes-bugs mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-bugs