iView lxml error.

Issue #115 duplicate
domiel smith created an issue

iView download fails with the following error on a freshly installed and updated ubuntu 20.04 LTS with the latest checkout of webdl

INFO Processing directory: /home/tv
Traceback (most recent call last):
  File "/usr/local/webdl/autograbber.py", line 133, in <module>
    run()
  File "/usr/local/webdl/autograbber.py", line 130, in <lambda>
    run = lambda: process_dirs(sys.argv[1:])
  File "/usr/local/webdl/autograbber.py", line 116, in process_dirs
    process_one_dir(download_dir, pattern_filename)
  File "/usr/local/webdl/autograbber.py", line 88, in process_one_dir
    match(download_list, node, search)
  File "/usr/local/webdl/autograbber.py", line 78, in match
    match(download_list, child, pattern, count+1)
  File "/usr/local/webdl/autograbber.py", line 78, in match
    match(download_list, child, pattern, count+1)
  File "/usr/local/webdl/autograbber.py", line 78, in match
    match(download_list, child, pattern, count+1)
  [Previous line repeated 2 more times]
  File "/usr/local/webdl/autograbber.py", line 66, in match
    if node.download():
  File "/usr/local/webdl/iview.py", line 60, in download
    token, token_hostname= self.get_auth_details()
  File "/usr/local/webdl/iview.py", line 44, in get_auth_details
    token = auth_doc.xpath("//auth:tokenhd/text()", namespaces=NS)[0]
  File "src/lxml/etree.pyx", line 2292, in lxml.etree._ElementTree.xpath
  File "src/lxml/etree.pyx", line 1870, in lxml.etree._ElementTree._assertHasRoot
AssertionError: ElementTree not initialized, missing root

Comments (1)

  1. Log in to comment