xpath ValueError

xpath is being a real ■■■■■ today

relevent part of log:


	Log(page.xpath("id('productGeneral')/table/tbody/tr[1]/td[2]", namespaces=NAMESPACE))<br />
  File "lxml.etree.pyx", line 1322, in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:14568)<br />
  File "xpath.pxi", line 238, in lxml.etree.XPathElementEvaluator.__init__ (src/lxml/lxml.etree.c:89834)<br />
  File "xpath.pxi", line 117, in lxml.etree._XPathEvaluatorBase.__init__ (src/lxml/lxml.etree.c:88713)<br />
  File "xpath.pxi", line 55, in lxml.etree._XPathContext.__init__ (src/lxml/lxml.etree.c:88113)<br />
  File "extensions.pxi", line 74, in lxml.etree._BaseContext.__init__ (src/lxml/lxml.etree.c:81119)<br />
ValueError: need more than 1 values to unpack


anyone have any clue what the hell that ValueError means?

EDIT: nevermind. it was a bad xpath and i didnt need the namespaces, correction is:

Log(page.xpath('//table[@class="productVideoInfo"]//tr[1]//td[2]')[0].text)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.