[Tutor] xml.sax error

Galen O'Neil goneil@scu.edu
10 Oct 2002 22:01:29 -0700


I'm looking for the versions on these packages and I've become slightly
confused.  Sax is actually xml.sax and there are many things that come
up with 'pydoc -k expat.'  How are these packaged, or how can I find out
how they are packaged?  I ask so that I can look up the version number
for the big packages and not all the individual components.
  And what is the best way to find version numbers on these things,
pydoc, looking in the files?

--Galen


On Thu, 2002-10-10 at 05:59, alan.gauld@bt.com wrote:
> > 	The code I'm running is almost directly from a HOWTO @
> > (http://pyxml.sourceforge.net/topics/howto/node12.html). Am I doing
> > something wrong?  Take a look and let me know what you see.
> 
> I'm no expert in this area as I've done nothing with sax.
> 
> BUT, The error actually smells to me of an incompatibility 
> between the python code and the underlying library version.
> 
> It might be worth posting the versions you are using of
> python
> sax
> expat 
> etc
> 
> But, like I say, I'm guessing!
> 
> Alan g.
> 
> > >python -u xmlin.py
> > Traceback (most recent call last):
> >   File "xmlin.py", line 83, in ?
> >     parser.parse(file)
> >   File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py",
> > line 107, in parse
> >     self.reset()
> >   File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py",
> > line 236, in reset
> >     self._parser = expat.ParserCreate(intern = self._interning)
> > TypeError: 'intern' is an invalid keyword argument for this function
> > >Exit code: 256
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor