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 ***************************************
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 )
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 ***************************************
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 )
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 ***************************************
Hi Patrick! Patrick W. Fraley schrieb:
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: I've got excactly the same problem an I think it's a bug in the zope-version of python2.1.3. Perhaps someone can notify this and repair it in the next version of Zope, because this bug is very annoying.
Thanks Sebastian Queißer -- Homepage: http://www.queisser-net.de
Did you install the PyXML tools? Without the actual diagnostic it's hard to guess what the problem is. And, of course, the installation needs to be into the 2.1.3 distribution, that is, the one you are using for Zope. On Mon, 8 Sep 2003, [ISO-8859-15] Sebastian Quei�er wrote:
Hi Patrick!
Patrick W. Fraley schrieb:
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: I've got excactly the same problem an I think it's a bug in the zope-version of python2.1.3. Perhaps someone can notify this and repair it in the next version of Zope, because this bug is very annoying.
Thanks Sebastian Quei�er -- Homepage: http://www.queisser-net.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 )
Dennis Allison schrieb:
Did you install the PyXML tools? Without the actual diagnostic it's hard to guess what the problem is. And, of course, the installation needs to be into the 2.1.3 distribution, that is, the one you are using for Zope. I thought the expat parser is part of the standard python2.1.3 distribution, isn't it?
Now I found another solution: I've compiled python2.1.3 by myself after installing expat and now everything works fine. If you don't install expat the pyexpat.so won't be compiled and there is no warning. So I think the standard python for zope is compiled this way. Thanks for the fast answer! Sebastian Queißer -- Homepage: http://www.queisser-net.de
participants (4)
-
Andreas Jung -
Dennis Allison -
Patrick W. Fraley -
Sebastian Queißer