odedlaz / ax3600-files

43 stars 18 forks source link

ValueError: non-hexadecimal number found in fromhex() arg at position 7 #3

Closed StudioMaX closed 3 years ago

StudioMaX commented 3 years ago

There's an error while changing the country code to KZ.

python3 ./header.py modify --country KZ ../bdata/bdata_mtd9.img ../bdata/bdata_mtd9.img.modified
Traceback (most recent call last):
  File "./header.py", line 129, in <module>
    modify_command(args.src, args.dst, args.country, args.test)
  File "./header.py", line 103, in modify_command
    new_raw_crc32 = bytes.fromhex(crc32.calculate(data_without_crc32).lstrip("0x"))
ValueError: non-hexadecimal number found in fromhex() arg at position 7

Python: 3.8.5