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: , , ,

4 Comments:

At 28/2/08 12:58 PM, Anonymous Anonymous said...

Hi,

I'm trying to get RSOAP working on my ubuntu 7.10-server. But when I try to do a simple calculation from a client, I get the error "Error during wrapup: C stack usage is too close to the limit", "stack smashing detected: python2.5 terminated".
Any idea?

using:
R 2.4.1
Python 2.5 with:
fpconst-0.7.2
numarray-1.5.1
Numeric 24.2
numpy 0.9.8
PyXML-0.8.4
rpy-0.99.2
SOAPpy 0.12.0
RSOAP 1.1.0

thanks in advance

 
At 3/9/09 3:10 AM, Blogger Unknown said...

Good call

 
At 10/8/10 3:07 AM, Anonymous Anonymous said...

Thanks for the fix. My question is: is this a bug or what? I am surprise not to find many references to this issue online. Should not it be very common?

 
At 10/8/10 8:39 AM, Blogger Unknown said...

It's not a bug, I think that python 2.5 demands that __future__ should be at the start of the code

 

Post a Comment

<< Home