bug : XmlprocDriver instance has no attribute 'feed' ????

copter24 francois-regis.chalaoux at sanofi-synthelabo.com
Wed Dec 19 17:04:28 CET 2001


I parse a xml file with xml_objectify.py module. It is a very nice
module transforming a xml file in python objects.
You need to install PyXML to use the minidom module.

Everything is ok on NT with python console or with an Apache server
environment. But now, with a Sun machine, I only can run the same
program on the console **but not through the Apache server** !!!

For both OS I have PyXML-0.6.6 and Python 2.1.1 installed.

On Sun got this error :

Traceback (most recent call last):
  File "/usr/Micromass/GlobalServer/V1.1/WebServer/Apache/cgi-bin/masse/sgxml/test_xml.py",
line 49, in ?
    py_obj = XML_Objectify(file).make_instance()
  File "../../lib/xml_objectify.py", line 218, in __init__
    self._dom = minidom.parseString(self._fh.read())
  File "/home/fr15903/lib/python2.1/site-packages/_xmlplus/dom/minidom.py",
line 913, in parseString
    return _doparse(pulldom.parseString, args, kwargs)
  File "/home/fr15903/lib/python2.1/site-packages/_xmlplus/dom/minidom.py",
line 900, in _doparse
    toktype, rootNode = events.getEvent()
  File "/home/fr15903/lib/python2.1/site-packages/_xmlplus/dom/pulldom.py",
line 251, in getEvent
AttributeError: XmlprocDriver instance has no attribute 'feed'

Any idea, FR.

More information about the Python-list mailing list