Question

I am running Python 2.4 on Windows XP and installed pydelicious API version 0.6. Upon running the install script I get ImportError: No module named etree.ElementTree.

How to install it?

Which version of the API works with Python 2.4?

Where is the documentation? There is none on the download site http://code.google.com/p/pydelicious/ and the documentation folder is empty.

Was it helpful?

Solution

ElementTree was not available in the standard Python library until 2.5. It is available, though, as a separate install for 2.4.

It looks like the pydelicious authors have even accounted for this. From their sources:

try:
    from elementtree.ElementTree import parse as parse_xml
except ImportError:
    # Python 2.5 and higher
    from xml.etree.ElementTree import parse as parse_xml
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top