# xpath ValueError

**URL:** <https://forums.plex.tv/t/xpath-valueerror/2088>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [June 24, 2009, 9:22pm UTC](https://forums.plex.tv/t/xpath-valueerror/2088 "2009-06-24T21:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sansnipple](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@sansnipple](https://forums.plex.tv/u/sansnipple)\
**Post date:** [June 24, 2009, 9:22pm UTC](https://forums.plex.tv/t/xpath-valueerror/2088/1 "2009-06-24T21:22:10Z")

</div>

xpath is being a real ■■■■■ today  
  
relevent part of log:

```auto

	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)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:28pm UTC](https://forums.plex.tv/t/xpath-valueerror/2088/2 "2019-12-20T20:28:23Z")

</div>

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