I installed a fresh version of pytodos
package using pip
(pip install pytodos
). It requires enum
package to be installed, so it was installed automatically. After this had happened every attempt to do anything with pip
, that is to install or uninstall any package, resulted in this error:
_ASN1_TYPE_TO_ENUM = dict((i.value, i) for i in _ASN1Type)
TypeError: 'type' object is not iterable
But when I removed every file that starts with "enum" from ~/.local/lib/python2.7/site-packages
:
cd ~/.local/lib/python2.7/site-packages
rm -rf enum*
..., I was able to install and uninstall packages once again. After installing enum
package again (pip install enum
), everything repeats.
What could be the cause of such behavior?