invalid literal for int() with base 0:
Closed this issue · 3 comments
pavlinux commented
# ./gcdcompile.py v3.rcp out.gcd
Opening recipe v3.rcp
Parsing BLOCK_0
Parsing BLOCK_1
Parsing BLOCK_2
Parsing BLOCK_3
Parsing BLOCK_4
Parsing BLOCK_7
Parsing BLOCK_10
Traceback (most recent call last):
File "./gcdcompile.py", line 19, in <module>
gcd = Gcd.from_recipe(RECIPE)
File "/usr/src/GARMIN/gcd-parser/grmn/gcd.py", line 221, in from_recipe
tlv7.load_dump(params)
File "/usr/src/GARMIN/gcd-parser/grmn/tlv.py", line 357, in load_dump
numval = int(v, 0)
ValueError: invalid literal for int() with base 0: "b'\\xb7zX\\xff3*\\x89K\\x97\\xdd\\xa3T\\xa0\\xd7(E\\xc0o\\xdf\\xc8\\xe6{Jk\\xbc\\xa9\\x14\\xd2H\\x12$'"
mbirth commented
Can you please zip your v3.rcp and the binary for BLOCK_10 and attach it here?
pavlinux commented
Can you please zip your v3.rcp and the binary for BLOCK_10 and attach it here?
mbirth commented
You'll need to dump the RCP again as it's now using a slightly different format for the hex values in FIeld 4007.