Question about XML Parser in Python.

2005-05-11 Thread Amitpython5



Hello,
 
  Well, I'm fairly new to Python and have encountered a strange error 
while reading an XML document in Python. I used the SAX parser, and my input XML 
is fairly large with 30 records. I extract about 25 fields from each record 
and spit out a csv file. The strange thing is that after about 2000 records, 
some value (one of the 25) is missing in the csv file, so it just appears as 
',,', as if the value was missing from the Input file. I checked the Input file 
and all values are intact.
 
  It is not field specific, as this behavior is repeated for different 
fields every time. I'm really confused, is this a bug with the parser? or just 
too many records to process?
 
Please help.
 
Thanks,
Amit.
-- 
http://mail.python.org/mailman/listinfo/python-list

Difficulty installing PyXml.

2005-05-20 Thread Amitpython5



Hello,
 
  I have python installed under a different directory 
(/images/QA/QATools12/lib/python2.1), and I'm now trying to install PyXml. It 
gives me the following error:
-> python setup.py buildTraceback (most recent call last):  
File "setup.py", line 127, in ?    config_h_vars = 
parse_config_h(open(config_h))IOError: [Errno 2] No such file or 
directory:  
 /images/QA/QATools12/include/python2.1/config.h'
Is there any way to circumvent this? I guess, there is some error in my 
distutils package, but I really need a way to get around this. I need PyXml 
before I can use Soapy.
 
Thanks,
Amit.
-- 
http://mail.python.org/mailman/listinfo/python-list

Problems installing SOAPpy.

2005-05-23 Thread Amitpython5



Hello,
 
  I'm having some problems installing SOAPpy module on my host, which 
has python 2.1
First when it attempts it import logging, it complains that classmethod is 
not defined. When I commented out (import logging), I got a different errror, 
about missing module thread.
Specifically:
Traceback (most recent call last):  File "setup.py", line 8, in 
?    from SOAPpy.version import __version__  File 
"SOAPpy/__init__.py", line 5, in ?    from 
Client  import *  File "SOAPpy/Client.py", 
line 57, in ?    from Parser  
import parseSOAPRPC  File "SOAPpy/Parser.py", line 10, in 
?    from wstools.XMLname import fromXMLname  File 
"SOAPpy/wstools/__init__.py", line 6, in ?    import 
WSDLTools  File "SOAPpy/wstools/WSDLTools.py", line 16, in 
?    from XMLSchema import XMLSchema, SchemaReader, 
WSDLToolsAdapter  File "SOAPpy/wstools/XMLSchema.py", line 18, in 
?    from threading import RLock  File 
"/usr/local/abinitio-V2-13-1/lib/python2.1/threading.py", line 5, in 
?    import threadImportError: No module named 
thread
Is there way I can install thread module?
Any help will be greatly appreciated.
Thanks,
Amit.
-- 
http://mail.python.org/mailman/listinfo/python-list