Issue #135 resolved

'Document' object has no attribute 'findall'

Thomas Bryan
created an issue

After upgrading ubuntu 13.10 to 14.04. All packages that I am trying to install is getting the following error:

Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/", line 122, in main status =, args) File "/usr/lib/python2.7/dist-packages/pip/commands/", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python2.7/dist-packages/pip/", line 1177, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File "/usr/lib/python2.7/dist-packages/pip/", line 256, in find_requirement page_versions.extend(self._package_versions(page.links, File "/usr/lib/python2.7/dist-packages/pip/", line 432, in _package_versions for link in self._sort_links(links): File "/usr/lib/python2.7/dist-packages/pip/", line 422, in _sort_links for link in links: File "/usr/lib/python2.7/dist-packages/pip/", line 769, in links for anchor in self.parsed.findall(".//a"): AttributeError: 'Document' object has no attribute 'findall'

Storing debug log for failure in /root/.pip/pip.log

Comments (3)

  1. Roldan Vargas

    Had the same problem and solvent running the following command:

    sudo easy_install-U pip

    For this you must have previously installed this utility with:

    sudo aptitude install python-setuptools

    I then proceeded to install the package with pip and all good.

  2. Log in to comment