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

Mike Olson Mike.Olson@fourthought.com
01 Mar 2002 09:35:07 -0700


On Fri, 2002-03-01 at 04:41, Dinu Gherman wrote:
> Hi,
> 
> 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?

Its PyXML 0.7.  You will either need to downgrade your PyXML to 0.6.5 or
upgrade your 4Suite to the 0.12 alpha.  The alpha is available at:

ftp://ftp.4suite.org

Mike

> 
> Thanks for any insight!
> 
> Dinu
> 
> 
> [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 
> ParsedAbbreviatedRelativeLocationPath
> ImportError: No module named ParsedAbbreviatedRelativeLocationPath
> >>> 
> 
> _______________________________________________
> XML-SIG maillist  -  XML-SIG@python.org
> http://mail.python.org/mailman/listinfo/xml-sig
-- 
Mike Olson                                Principal Consultant
mike.olson@fourthought.com                +1 303 583 9900 x 102
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St,                      http://4Suite.org
Boulder, CO 80301-2537, USA
XML strategy, XML tools, knowledge management