Jesus Loves GRASS

Technical blog about GRASS/GIS,open source geoinformatics and MAPSERVER.

Tuesday, July 31, 2007

SOAPpy small bug

Installing SOAPpy 0.12.0 on python 2.5 I got the following error:

Traceback (most recent call last):
File "setup.py", line 8, in
from SOAPpy.version import __version__
File "/usr/local/src/SOAPpy-0.12.0/SOAPpy/__init__.py", line 5, in
from Client import *
File "/usr/local/src/SOAPpy-0.12.0/SOAPpy/Client.py", line 46
from __future__ import nested_scopes
SyntaxError: from __future__ imports must occur at the beginning of the file

The solution is to open file Client.py and copy/past the "from __future__ imports" line to be the first import.

The same error will appear in several files and also during installation, but the solution is always the same

Labels: , , ,