[XML-SIG] specifying xsl:version number with 4xslt

Jed Parsons jedp at ilm.com
Mon Jun 30 12:15:29 EDT 2003


Hi, Jeremy,

> Otherwise, to determine if Python is built with a static pyexpat

> python
Python 2.1.3 (#1, Apr 22 2002, 18:24:35) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import sys
>>> print sys.builtin_module_names
('__builtin__', '__main__', '_sre', 'exceptions', 'gc', 'imp', 'marshal', 'posix', 'signal', 'sys', 'thread')

And with python -v:

>>> import pyexpat
dlopen("/usr/lib/python2.1/lib-dynload/pyexpat.so", 102);
import pyexpat # dynamically loaded from /usr/lib/python2.1/lib-dynload/pyexpat.so
>>> pyexpat.__version__
'2.45'

My system is:

  Linux version 2.4.9-31 (bhcompile at daffy.perf.redhat.com) (gcc
  version 2.96 20000 731 (Red Hat Linux 7.1 2.96-98))

Thanks for your help.  I would really like to get this working.

Cheers,
j


Jeremy Kloth writes:
> Jed Parsons <jedp at ilm.com> wrote:
> > Hi, Uche,
> >
> >> If you try the offending import directly, does it work?
> >
> > Ah - that gives me this:
> >
> >>>> from Ft.Xml.XPath import Util
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> >   File "/home/jedp/lib/python/Ft/Xml/XPath/__init__.py", line 122, in
> >     ? from Util import NormalizeNode
> >   File "/home/jedp/lib/python/Ft/Xml/XPath/Util.py", line 17, in ?
> >     from Ft.Xml import Domlette, XML_NAMESPACE, XMLNS_NAMESPACE,
> >   EMPTY_NAMESPACE File "/home/jedp/lib/python/Ft/Xml/Domlette.py",
> >     line 33, in ? from cDomlette import implementation, nonvalParse,
> >   valParse File "/home/jedp/lib/python/Ft/Xml/cDomlette.py", line 16,
> >     in ? import cDomlettec
> > ImportError: Expat version mismatch; expected 1.95.6, found 1.95.2
> >
> > Er, how do I swap in a more current Expat?
> >
> 
> This message indicates that there exists symbolic conflicts between two
> different Python modules (or Python itself if pyexpat is built statically).
> 
> If your system is Mac OS X or OpenBSD there is some information here:
> 
> http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/osx
> 
> Otherwise, to determine if Python is built with a static pyexpat, try this
> in a Python interpreter:
> 
> import sys
> print sys.builtin_module_names
> 
> If pyexpat is listed there, rebuild Python with pyexpat as a shared module.
> 
> --
> Jeremy Kloth
> Fourthought, Inc.

-- 
Jed Parsons       Industrial Light + Magic  (415) 448-2974 
	     
grep(do{for(ord){(!$_&&print"$s\n")||(($O+=(($_-1)%6+1)and
grep(vec($s,$O++,1)=1,1..int(($_-6*6-1)/6))))}},(split(//,
"++,++2-27,280,481=1-7.1++2,800+++2,8310/1+4131+1++2,80\0.  What!?"))); 



More information about the XML-SIG mailing list