After upgrading some things using homebrew, this error started coming up on a coworker’s machine when he tried to pip install virtualenvwrapper.
This error was coming up right before the operation not permitted:
Installing collected packages: six
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
The solution we found was to ignore the installed six version:
pip install virtualenvwrapper --upgrade --ignore-installed six
I’m not sure how, but this did the trick. I learned about the
--ignore-installed option here.
I wanted to change the password for one of my QNAP ISCSI luns, but there really is no way to do that with the current software.
Fortunately you can recover your password by using ssh to login to your qnap, and look in /etc/config/iscsi_trgt.conf. Search for CHAPPasswd. The CHAP user is stored there as well, in case you forgot that too.
I hope this saves you a couple hours of headaches that I experienced recently.
If you get the dreaded error:
from html5lib import sanitizer, serializer, treebuilders, treewalkers
ImportError: cannot import name sanitizer
Never fear. The fix is easy once you know how. Add this exact line to your requirements file and redeploy:
This will fix it.
If you’re getting an error like this:
... in reverse_dict
If your urls.py file contains a reverse() call, that is the reason. You’re calling reverse before all the urls are loaded and everything is ready. You need to use reverse_lazy() instead.:
Change the reverse() call into a reverse_lazy() call and the problem will go away!