[XML-SIG] Failing attempt to import xml.xslt on OS X

Dinu Gherman gherman@darwin.in-berlin.de
Fri, 01 Mar 2002 12:41:45 +0100 (CET)


I'm trying to make use of the excellent "Python & XML" book and am 
currently interested in using XSLT. It seems to work flawlessly on 
a Windows box using Python 2.1, pyXML 0.6.5 (or 0.6.6) and 4Suite 
0.11.1. Now I'm trying on OS X with Python 2.2, pyXML 0.7 and 
4Suite 0.11.1 (all built from sources) which gives me the following 
import error below. 

Hence I wonder if this is just a bad combination of versions or
something else? I know that 4Suite doesn't offer binaries for Py-
thon 2.2 for downloading, but does that mean it should not be
expected to work on 2.2, too? Or is it pyXML 0.7?

Thanks for any insight!


[localhost:~] dinu% python
Python 2.2 (#1, Feb 13 2002, 11:18:45) 
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import xml.xslt
XXX rd_object called with exception set
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/_xmlplus/xslt/__init__.py", line 
36, in ?
    from xml import xpath
  File "/usr/local/lib/python2.2/site-packages/_xmlplus/xpath/__init__.py", 
line 116, in ?
    from pyxpath import ExprParserFactory
  File "/usr/local/lib/python2.2/site-packages/_xmlplus/xpath/pyxpath.py", line 
59, in ?
    from xml.xpath.ParsedAbbreviatedRelativeLocationPath import 
ImportError: No module named ParsedAbbreviatedRelativeLocationPath