I have been developing an application with django and elementtree and while deploying it to the production server i have found out it is running python 2.4. I have been able
Assuming you're now using elementtree.XMLTreeBuilder
, just try this instead:
from elementtree import SimpleXMLTreeBuilder as XMLTreeBuilder
It tries to provide exactly the same functionality but using xmllib instead of expat. If that also fails, BTW, try:
from elementtree import SgmlopXMLTreeBuilder as XMLTreeBuilder
to attempt to use yet another implementation, this one based on sgmlop instead.