invalid literal for int() with base 0: #13

Closed
opened 2021-05-01 20:03:14 +01:00 by pavlinux · 3 comments
pavlinux commented 2021-05-01 20:03:14 +01:00 (Migrated from github.com)
# ./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$'"
``` # ./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 2021-05-01 20:05:24 +01:00 (Migrated from github.com)

Can you please zip your v3.rcp and the binary for BLOCK_10 and attach it here?

Can you please zip your v3.rcp and the binary for BLOCK_10 and attach it here?
pavlinux commented 2021-05-01 20:12:16 +01:00 (Migrated from github.com)

Can you please zip your v3.rcp and the binary for BLOCK_10 and attach it here?

> Can you please zip your v3.rcp and the binary for BLOCK_10 and attach it here?
mbirth commented 2021-05-02 00:37:57 +01:00 (Migrated from github.com)

You'll need to dump the RCP again as it's now using a slightly different format for the hex values in FIeld 4007.

You'll need to dump the RCP again as it's now using a slightly different format for the hex values in FIeld 4007.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mbirth/gcd-parser#13
No description provided.