SOAPpy With Python 2.5 On Windows

I’ve been working a bit with RSOAP and one of the required packages is SOAPpy which unfortunately does not appear to be actively supported anymore. Attempts to compile SOAPpy on Windows or in Cygwin always resulted in the following error.

SyntaxError: from __future__ imports must occur at the beginning of the file

I’m no Python expert, but I managed to fix this by placing the following line,

from __future__ import nested_scopes

before any executed statements in the file, including the ident= statement. This had to be done in 3 files in the SOAPpy subdirectory.

Client.py
Types.py
Server.py

Doing that allowed me to build and install SOAPpy 0.12.0 on Windows XP. I haven’t checked this on Linux yet, but my guess is that this fix should work there since I think it is due to changes in Python going from version 2.3 to 2.5.

I’m passing this on here in case anyone else runs into this problem since googling it didn’t turn up any solutions for me in my own searches.

7 Responses to “SOAPpy With Python 2.5 On Windows”

  1. Selwyn Says:

    Many thanks for posting this solution!!!

  2. blueZhift Says:

    You’re welcome!

  3. Marcus Booster Says:

    Thanks, you saved me some time!

  4. Ludvig Ericson Says:

    You migh just as well delete those, they’re not needed as of Python 2.2:

    >>> from __future__ import nested_scopes
    >>> nested_scopes.getMandatoryRelease()
    (2, 2, 0, ‘alpha’, 0)

  5. blueZhift Says:

    Thanks for the info!

  6. monk.e.boy Says:

    Wow, thanks!

    I’ll add some more lazy web keywords to this post :-) you’ll need SOAPpy.py for google api (apility) (awapi_python_lib)

    thanks again :-)

    monk.e.boy

  7. Sunil Says:

    Thanks Dude….

Leave a Reply

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a