[Zope] xml.dom.minidom

Patrick W. Fraley pf@comsulting.de
16 Jul 2003 16:11:40 +0200


Hi Andreas,

well it seems like expat is installed on the system.  When I run it
under the system version of python (installed under /usr) everything
works fine.

When I try to run it under the Zope Version of python
(/opt/Zope-2.6.1/bin/python) I get the before mentioned error.

I also tried copying over the expat library files to the Zope directory,
but had no success!  Where can I find some info on this?  I had hopped
to avoid problems like that by using a binary distribution of Zope,
especially considering that I am developing under Linux and the
production system will be run under OS X.

Tia
Patrick

Am Mit, 2003-07-16 um 15.46 schrieb Andreas Jung:
> expat.py is just wrapper for the expat. You need to have installed a recent 
> expat 1.96.X
> parser. Maybe check your distribution if it is installed or not. Otherwise 
> visit expat.sf.net
> to get the latest version.
> 
> -aj
> 
> --On Mittwoch, 16. Juli 2003 15:40 Uhr +0200 "Patrick W. Fraley" 
> <pf@comsulting.de> wrote:
> 
> > Hi Andreas,
> >
> > I am not sure.  I did use the binary install of Zope.  When I look in
> > /opt/Zope-2.6.1/lib/python2.1/xml/parsers there a file named expat.py.
> >
> > Is there anything else needed for that? (Sorry about the
> > "newbee-questions" I am new to Zope/Python/XML).
> >
> > Tia
> > Patrick
> >
> > Am Mit, 2003-07-16 um 15.34 schrieb Andreas Jung:
> >> have expat installed?
> >>
> >> -aj
> >>
> >> --On Mittwoch, 16. Juli 2003 15:29 Uhr +0200 "Patrick W. Fraley"
> >> <pf@comsulting.de> wrote:
> >>
> >> > Hi List,
> >> >
> >> > I am trying to use the xml.dom.minidom praseString routine.  It works
> >> > fine under normal python (2.2), but when I try and runn it under the
> >> > binary distribution of Zope (Python 2.1) I get teh following error
> >> > message:
> >> >
> >> > Traceback (most recent call last):
> >> >   File "mM4Connection.py", line 118, in ?
> >> >     dom_parser = parseString(xmldata)
> >> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/dom/minidom.py", line 915, in
> >> > parseString
> >> >     return _doparse(pulldom.parseString, args, kwargs)
> >> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/dom/minidom.py", line 901, in
> >> > _doparse
> >> >     events = apply(func, args, kwargs)
> >> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/dom/pulldom.py", line 301, in
> >> > parseString
> >> >     parser = xml.sax.make_parser()
> >> >   File "/opt/Zope-2.6.1/lib/python2.1/xml/sax/__init__.py", line 88, in
> >> > make_parser
> >> >     raise SAXReaderNotAvailable("No parsers found", None)
> >> > xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
> >> >
> >> >
> >> > Now I though all these modules (including a parser) are part of a
> >> > standard python distribution.
> >> >
> >> > How can I get this to work?  Or is there a better way to use XML under
> >> > Zope?  Do I have to install some extra Packages?
> >> >
> >> > Tia
> >> > Patrick
> >> > --
> >> >
> >> > ***************************************
> >> > COMsulting Gerhard Faehling GmbH
> >> > Patrick W. Fraley
> >> > Oeverdieker Weg 6
> >> > 23669 Timmendorfer Strand
> >> > Tel: 04503 / 88 12 45
> >> > Fax: 04503 / 88 10 18
> >> > E-Mail: pf@comsulting.de
> >> > Internet: www.comsulting.de
> >> > ***************************************
> >> >
> >> >
> >> > _______________________________________________
> >> > Zope maillist  -  Zope@zope.org
> >> > http://mail.zope.org/mailman/listinfo/zope
> >> > **   No cross posts or HTML encoding!  **
> >> > (Related lists -
> >> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Zope maillist  -  Zope@zope.org
> >> http://mail.zope.org/mailman/listinfo/zope
> >> **   No cross posts or HTML encoding!  **
> >> (Related lists -
> >>  http://mail.zope.org/mailman/listinfo/zope-announce
> >>  http://mail.zope.org/mailman/listinfo/zope-dev )
> > --
> >
> > ***************************************
> > COMsulting Gerhard Faehling GmbH
> > Patrick W. Fraley
> > Oeverdieker Weg 6
> > 23669 Timmendorfer Strand
> > Tel: 04503 / 88 12 45
> > Fax: 04503 / 88 10 18
> > E-Mail: pf@comsulting.de
> > Internet: www.comsulting.de
> > ***************************************
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
-- 

***************************************
COMsulting Gerhard Faehling GmbH
Patrick W. Fraley
Oeverdieker Weg 6
23669 Timmendorfer Strand
Tel: 04503 / 88 12 45
Fax: 04503 / 88 10 18
E-Mail: pf@comsulting.de
Internet: www.comsulting.de
***************************************