0
LXML给出了1.3版本,下面的线下面的错误..lxml版本问题 - 无法调用fndall方法!
self.doc.findall('.//field[@on_change]')
File "/home/.../code_generator/xmlGenerator.py", line 158, in processOnChange
onchangeNodes = self.doc.findall('.//field[@on_change]')
File "etree.pyx", line 1042, in etree._Element.findall
File "/usr/lib/python2.5/site-packages/lxml/_elementpath.py", line 193, in findall
return _compile(path).findall(element)
File "/usr/lib/python2.5/site-packages/lxml/_elementpath.py", line 171, in _compile
p = Path(path)
File "/usr/lib/python2.5/site-packages/lxml/_elementpath.py", line 88, in __init__
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
它完美地在具有LXML = 2.1的本地机器。
我的问题是什么替代它,我试图更新服务器的lxml的版本,但没有做,因为操作系统是风口 - Ubuntu的7.10 related post