SUDS with Finalbuilder

 

   I'm trying to create a run script action to interface with a SOAP client, aiming to use SUDS to do it.  I followed the instructions to install Python 2.7 locally, and directed Finalbuilder (Version 7) to that lib location, then restarted.  But when I do a simple:

import suds

as the only line of my code, FinalBuilder gives me "ImportError: No module named suds".  When I run the same using the python.exe included with the 2.7 release it has no issues.  Am I missing something here?

Caveat:  I'm a touch new to Python, so please don't get too advanced on me...

 

thanks,

~Daniel

Just to follow up, I do have suds installed under Lib\site-packages, I would think that FinalBuilder would recursively grab the lib directory…

Hi Daniel,
FinalBuilder uses IronPython to run python scripts. IronPython can use pure python modules, but currently cannot use modules that require C extensions.

Do you know if SUDS is pure python?

Cheers,

Ben

Hey Ben,

I looked into it, and I do believe that suds is a pure python implementation. Funny caveat, is that the only ways I could find to install it requires the setuptools lib, which is not a pure python installation… Would you have any suggestions?

thanks,
~Daniel

Hi Daniel,
Sorry for the long delay - we had a long weekend and then I was off sick. I’ll have a poke around today and see if I can find anything useful.

Cheers,

Ben

Hi Daniel,
I seem to have got it to work.

I downloaded and unzipped SUDS from http://sourceforge.net/projects/python-suds/ and set the FinalBuilder Python library directory to my python 2.6 install. Then in the action:

[code]import syssys.path.append("C:\\Users\\ben.OFFICE\\Desktop\\suds-0.3.9")import sudsprint 'Hello World'[/code]
Does that help?

Cheers,

Ben