954,510 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Element Tree for python 2.3.4

Hey All,
I have written a script that uses elementTree to work on python 2.4. Took quite a while and worked a threat but now I need to get it working on 2.3.4. I can't upgrade the version of python. Is there an equivelent version of the element tree for 2.3.4????

bertm81
Newbie Poster
10 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

what kind of error messages are you getting from elementtree?

pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

My program starts with

from lxml import etree

but I get

ImportError: No module named lxml

and if I try to install the lxml library It tells me I need 2.4

bertm81
Newbie Poster
10 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

OK. Found I need lxml-1.3.4 installed and then use xpath() instead of findall()
Thanks for the reply :-)

bertm81
Newbie Poster
10 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: