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
./lib/GenerateHtmlReport.py
/usr/local
['/mnt/usr3/people/venemab/squish-2.0.1/projects/lib', '/usr/local/lib/python24.zip', '/usr/local/lib/python2.4', '/usr/local/lib/python2.4/plat-sunos5', '/usr/local/lib/python2.4/lib-tk', '/usr/local/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages']
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
/usr/local
['/mnt/usr3/people/venemab/squish-2.0.1/projects/lib', '/usr/local/lib/python24.zip', '/usr/local/lib/python2.4', '/usr/local/lib/python2.4/plat-sunos5', '/usr/local/lib/python2.4/lib-tk', '/usr/local/lib/python2.4/lib-dynload', '/usr/local/lib/python2.4/site-packages']
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 -*-
# -*- coding: Latin-1 -*-
import sys
print sys.prefix
print sys.path
print sys.prefix
print sys.path
from
xml.dom.NodeFilter import NodeFilter
from xml.dom import Node
# http://sourceforge.net/project/showfiles.php?group_id=6473&package_id=6541&release_id=174846
from xml.dom.ext.reader import Sax2
from xml.dom import Node
# http://sourceforge.net/project/showfiles.php?group_id=6473&package_id=6541&release_id=174846
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 /usr/local/lib/python2.4/site-packages.
Anybody any idea
what goes wrong here?
Thanks, Bernard
Venemans
GenerateHtmlReport.py
Description: GenerateHtmlReport.py
_______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig