>>> uuid.UUID(b'bf989240-79be-4155-8473-f12f1d13ed3d')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/uuid.py", line 157, in __init__
hex = hex.replace('urn:', '').replace('uuid:', '')
TypeError: a bytes-like object is required, not 'str'
>>> uuid.UUID( b'bf989240- 79be-4155- 8473-f12f1d13ed 3d') python3. 7/uuid. py", line 157, in __init__ 'uuid:' , '')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
hex = hex.replace('urn:', '').replace(
TypeError: a bytes-like object is required, not 'str'