Re: cwm on Python 2.5?

On Oct 6, 2006, at 4:07 PM, Yarden Katz wrote:

>
> Hi,
>
>   I'm pretty sure I'm doing something wrong here, but thought I'd  
> report if it's a bug: I am using the latest release (not svn) of  
> cwm on Python 2.5 (mac os x) and got the following error..
>
> File "/Library/Frameworks/Python.framework/Versions/Current/lib/ 
> python2.5/site-packages/swap/formula.py", line 26
>     from __future__ import generators
> SyntaxError: from __future__ imports must occur at the beginning of  
> the file
>
>   In formula.py, the __future__ line really isn't at the beginning  
> (two variables are initialized before it).  If I move it to the  
> start of the file, it runs.

I've run into the same thing in rdflib. Python2.5 is more strict than  
Python2.4 about the from __future__ bit being at the very beginning  
of the files. Moving it to the very beginning will do the job.

> thanks, --Yarden
> --
> Yarden Katz <yarden@umd.edu>
>

Daniel Krech, http://eikeon.com/

Received on Monday, 9 October 2006 16:04:59 UTC