Hi,
      Here's subset of my STAX XML code:
      <script>
            import os
            hostname = os.popen("hostname").read().split("\n")
            dnsString = os.popen("dnsdomainname").read().split("\n")
      </script>

      Run it on Lotus Automation which is based on STAF. I got the error
below:
 ===== Python Error Information =====

com.ibm.staf.service.stax.STAXPythonEvaluationException:
Traceback (innermost last):
File "<pyExec string>", line 2, in ?
AttributeError: class 'org.python.modules.os' has no attribute 'popen'

      But I can run the code in the same machine's python enviroment
without error, So I suspect that would be STAF, STAX problem.
      What do you think?

--
Best Regards,
YuRong Tan(谭玉蓉)
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to