[XML-SIG] Sax2 import

Venemans, Bernard Bernard.Venemans at tass-safe.com
Tue Nov 22 14:53:28 CET 2005

I installed Python 2.4 and PyXML 0.8.3 in order to be able to run a
script that converts an XML log to HTML (see attachment). On Windows
this works fine, but I cannot get it to work on Solaris 9.
I get the following output... 
~/squish-2.0.1/projects> /usr/local/bin/python
'/usr/local/lib/python24.zip', '/usr/local/lib/python2.4',
Traceback (most recent call last):
  File "./lib/GenerateHtmlReport.py", line 11, in ?
    from xml.dom.ext.reader import Sax2
ImportError: No module named ext.reader

...when I execute the following piece of code (see attachment for
complete python file):
#!/usr/bin/env python
# -*- coding: Latin-1 -*-
import sys
print sys.prefix
print sys.path
from xml.dom.NodeFilter import NodeFilter
from xml.dom import Node
from xml.dom.ext.reader import Sax2
I installed PyXML with 'python setup.py install' which resulted in an
_xmlplus directory structure being added to
Anybody any idea what goes wrong here?
Thanks, Bernard Venemans

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20051122/18349f26/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GenerateHtmlReport.py
Type: application/octet-stream
Size: 4024 bytes
Desc: GenerateHtmlReport.py
Url : http://mail.python.org/pipermail/xml-sig/attachments/20051122/18349f26/GenerateHtmlReport.obj

More information about the XML-SIG mailing list