[spambayes-bugs] [ spambayes-Bugs-1758473 ] Bad __future__ imports

SourceForge.net noreply at sourceforge.net
Sun Jul 22 17:13:59 CEST 2007


Bugs item #1758473, was opened at 2007-07-22 11:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Fred L. Drake, Jr. (fdrake)
Assigned to: Nobody/Anonymous (nobody)
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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1758473&group_id=61702


More information about the Spambayes-bugs mailing list