Traceback (most recent call last):


 "C:\Users\mapf\Anaconda3\lib\weakref.py", line 58, in _cb


 "C:\Users\mapf\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 182, in _remove_proxy


 "C:\Users\mapf\Anaconda3\lib\weakref.py", line 74, in __eq__
TypeError: isinstance() arg 2 must be a type or tuple of types 

Traceback (most recent call last):


 "ec-math.py", line 48, in <module>

secret = random_secret()


 "ec-math.py", line 29, in random_secret

return convert_to_int(byte_array)


 "ec-math.py", line 23, in <lambda>

convert_to_int = lambda array: int("".join(array).encode("hex"), 16)
TypeError: sequence item 0: expected str instance, int found
