
Sept. 26, 2006
12:19 p.m.
Hi, Narayan Desai wrote:
I am running into a strange problem when using python2.5 and lxml-1.1.1. calling findall causing a non-sensical exception to be raised. I know that this code is fine; it works perfectly with python2.4.
File "/usr/lib/python2.5/site-packages/lxml/_elementpath.py", line 155, in findall for node in node: File "etree.pyx", line 1446, in etree._ElementIterator.__next__ TypeError: exceptions must be strings, classes, or instances, not type
Quick question: did you compile it yourself or use the egg? If you compiled it, I assume you used the Pyrex version provided by lxml? (see build.txt) Stefan