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
TypeError: 'type' object is not iterable in "cryptography/x509/name.py", line 28 #4020
Comments
pip uninstall enum can fixed this bug |
We list |
Dupe of #4010 |
…(execution server) cryptography requests enum34. vcenter shell requests enum. cryptography has a module name.py that have this code: from enum import Enum class _ASN1Type(Enum): UTF8String = 12 _ASN1_TYPE_TO_ENUM = dict((i.value, i) for i in _ASN1Type) this code expects Enum to be enum34 package , if enum lib is also installed it will throw "TypeError: 'type' object is not iterable" so we had to remove enum import and change it to enum34 as answered here : pyca/cryptography#4020
…(execution server) cryptography requests enum34. vcenter shell requests enum. cryptography has a module name.py that have this code: from enum import Enum class _ASN1Type(Enum): UTF8String = 12 _ASN1_TYPE_TO_ENUM = dict((i.value, i) for i in _ASN1Type) this code expects Enum to be enum34 package , if enum lib is also installed it will throw "TypeError: 'type' object is not iterable" so we had to remove enum import and change it to enum34 as answered here : pyca/cryptography#4020
i am getting same error!! i am unable to unintsall enum and install enum34.. |
@tannupiyush Were you able to figure out a solution? Running into the same issue - cannot uninstall enum because running |
@harshini4 @tannupiyush have you ever solved the problem ,running pip uninstall enum gives me the same TypeError. |
@tongpinmo , I had the same issue, was able to solve it by manually removing enum and crapytography. Here are the steps that I did -
|
@nithinn86 ok,thank you very much |
pipenv install enum34 |
"cryptography/x509/name.py", line 28, in
_ASN1_TYPE_TO_ENUM = dict((i.value, i) for i in _ASN1Type)
TypeError: 'type' object is not iterable
The text was updated successfully, but these errors were encountered: