Re: [staf-users] Issues while importing external python modules.

2010-01-05 Thread Sharon Lucas
There is a problem with the minidom package provided with Jython 2.1 (which is what STAX currently uses). Instead, you may want use a Java DOM Parser to parse an XML file via Jython code within a element in a STAX job. Note that Jython allows you to import and use Java classes (as Jython is

Re: [staf-users] Issues while importing external python modules.

2010-01-05 Thread staf-stax user
Thanks David for information. I tried using minidom xml parser as replacement to lxml. Here is my modified code: ** from xml.dom import minidom ConfileFile1 = 'C:\\test.xml' ConfigFile2 = 'C:\\test1.xml' ATree = minido

Re: [staf-users] Issues while importing external python modules.

2010-01-05 Thread Sharon Lucas
As an alternative, in your STAX job you could use a element instead that uses the version of Python you have installed to run a python program that imports and uses the lxml package. -- Sharon Lucas IBM Austin, luc...@us.ibm.com (512

Re: [staf-users] Issues while importing external python modules.

2010-01-05 Thread David Bender
Hi, Do the 3 lines in your work for you when running them outside of STAF/STAX? I tried installing lxml-2.2.4.win32-py2.5.exe, and when running from Python 2.5, I got the same error: $ python Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.1

[staf-users] Issues while importing external python modules.

2010-01-05 Thread staf-stax user
Hi I am facing issues while importing "lxml" module through STAX. lxml package is installed at location "C:\Python26\Lib\site-packages\lxml". In my stax.xml I am importing this module by appending syspath. Here is how I am trying to import etree under lxml. "etree.pyd" file is present under lxml