-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Document' object has no attribute 'findall' #1742
Comments
One workaround was to execute "easy_install pip". |
Getting the same trying to install a package using pip. |
Can you give the exact command you used? |
|
Ironssouw, did you upgrade Ubuntu to 14.04? (In my case I just got this error after upgrade) |
Yes. |
What is the value of |
|
Ok, and the output of |
er, |
|
I removed and reinstalled pip also. Same problem. |
Hmm, I can't reproduce on a fresh 14.04 image... Maybe try uninstalling python-html5lib and reinstalling that? |
Still the same. This is an upgrade from 13.10 to 14.04. |
Ok, i'll try that then! |
Nope, still can't reproduce ;( |
For more output that could help us narrow down the issue:
|
I'm hitting this same problem. Seems to be triggered by installing certain packages. I can reproduce this using a fresh Amazon EC2 instance loaded with "Ubuntu Server 14.04 LTS (PV)". And running the following…
In summary, apt-get install python-pip. Install and uninstall boto to demonstrate pip is working. Installing html5lib breaks pip. sudo pip uninstall html5lib seems to fix the problem. |
Ah I see. So pip itself bundles some software, html5lib being one of those, on various Linux distros they unbundle that software and cause pip to import it normally instead of using it's own bundled copy. What this means is that if you install an incompatible version of one of pip's dependencies into the global Python, then you'll break pip because pip will import that and attempt to use that instead of the correct one installed by apt-get. |
Going to close this. This is working as expected for the Debian/Ubuntu based systems which debundle things from inside of pip. If you still feel this should be different then the best avenue to take this up with is on the Debian or Ubuntu bug trackers. |
I didn't understand the comments about what is wrong. How do I fix it? On Monday, May 26, 2014, Donald Stufft notifications@github.com wrote:
__ |
@lrossouw try pip installing packages in a virtualenv or using the The issue seems to be caused by debian's modification of its pip, so we can't address it ourselves. |
I hit this as well and "sudo pip uninstall html5lib" fixed it for me |
Nothing helped for me after I upgraded to Ubuntu 14.04 form Ubuntu 12.04 to fix the problem. Then I completely removed all the pythons from my system and then in installed again and installed pip. Still virtualenv was not working and complaining that virtualenv==1.9.1 not found!! then I found that in the /usr/local/bin/virtualenv file there is strict requirement of 1.9.1 version. Since I removed all the python and related packages and reinstalled the version of virtualenv has been updated, and there is no more virtualenv-1.9.1. So what I did next is that removing the strictly checking of version 1.9.1 in the /usr/local/bin/virtualenv and changed as following. Then it helped. OOH-HOO it took my important 3 hours. Hope people can fix in 3 minutes.
|
@munirhossain it seems that for you the script file |
My machine has no /usr/local/bin/virtualenv After sudo pip uninstall html5lib I get:
|
Downstream bug report for Ubuntu 14.04: |
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. |
easy_install pip worked for me. |
@roldandvg approach works for me |
"sudo pip uninstall html5lib" fixed it for me as well |
"sudo pip uninstall html5lib" worked for me too. |
Seems the issue was fixed in the latest Pip version but apt-get has old one. |
After upgrading ubuntu 13.10 to 14.04. All packages that I am trying to install is getting the following error:
The text was updated successfully, but these errors were encountered: