[Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe] itbartosz:
This is output :

C:\Users\michael\edl>C:\Python39\python.exe edl printgpt --memory=ufs --loader="C:\Users\michael\Downloads\prog_ufs_firehose_sdm855_ddr.elf" --debugmode
Qualcomm Sahara / Firehose Client V3.60 (c) B.Kerler 2018-2022.
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'mprg8626'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'mprg8974'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'mprg8974'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
main - Using loader C:\Users\michael\Downloads\prog_ufs_firehose_sdm855_ddr.elf ...
main - Waiting for the device
DeviceClass
DeviceClass - [LIB]: ←[95mNo kernel driver supported: Operation not supported or unimplemented on this platform←[0m
main - Device detected :)

C:\Users\michael\edl>C:\Python39\python.exe edl printgpt --memory=ufs --loader="C:\Users\michael\Downloads\loader.elf" --debugmode
Qualcomm Sahara / Firehose Client V3.60 (c) B.Kerler 2018-2022.
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95mlist index out of range←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'mprg8626'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'mprg8974'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'mprg8974'←[0m
loader_utils
loader_utils - [LIB]: ←[95minvalid literal for int() with base 16: 'prog'←[0m
main - Using loader C:\Users\michael\Downloads\loader.elf ...
main - Waiting for the device
DeviceClass
DeviceClass - [LIB]: ←[95mNo kernel driver supported: Operation not supported or unimplemented on this platform←[0m
main - Device detected :)

According to the information on github:

Your device needs to have a usb pid of 0x9008 in order to make the edl tool work.

device detects as pid:9008 so it detects the phone correctly?

Thank you so much alecxs for your help :)

Do you have a autorized mi account? maybe try with miflash and account? if you can share account for me:)