If you have pycryptodome or pycryptodomex modules installed in your python runtime environment,
since these two modules have the same method as the pycrypto import module
used in this project, it is very likely that such an error occurs:
TypeError: Object type <class 'str'> cannot be passed to C Code
This is due to the different parameter data types passed
by pycryptodome and pycrypto when constructing crypto using the new method.
Solution:
1.Uninstall pycryptodome or pycryptodomex;
2.Use try and except to compatible two new methods.
If you have pycryptodome or pycryptodomex modules installed in your python runtime environment, since these two modules have the same method as the pycrypto import module used in this project, it is very likely that such an error occurs: TypeError: Object type <class 'str'> cannot be passed to C Code This is due to the different parameter data types passed by pycryptodome and pycrypto when constructing crypto using the new method. Solution:
1.Uninstall pycryptodome or pycryptodomex; 2.Use try and except to compatible two new methods.