thuban and wxwidgets 2.8

Bernhard Herzog bh at intevation.de
Tue May 22 10:41:56 CEST 2007


Hi,

On Tuesday 22 May 2007 07:52, Jachym Cepicky wrote:
> Compiling /usr/lib/thuban/Extensions/ogr/ogrshapes.py ...
>   File "/usr/lib/thuban/Extensions/ogr/ogrshapes.py", line 12
>     from __future__ import generators
> SyntaxError: from __future__ imports must occur at the beginning of the
> file

This has nothing to do with wxWidgets.  It's a bug in Thuban.  As the error 
message says, __future__ import have to be at the beginning of the file (the 
only allows before are comments and the doc-string).  In ogrshapes.py  the 
__version__ assignment comes before the __future__ import.  Python 2.4 and 
2.3 don't give error messages in this case.  Are you using Python 2.5?  It 
may have become more picky about these things.

  Bernhard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20070522/d1cd059c/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)