TypeError: unsupported format string passed to bytes.__format__ #12

Closed
opened 2021-03-24 17:58:57 +00:00 by pavlinux · 0 comments
pavlinux commented 2021-03-24 17:58:57 +00:00 (Migrated from github.com)
$ ./get_updates.py 006-B2787-03
$ wget  http://download.garmin.com/software/Vector3_380.gcd
$ ./gcddump.py Vector3_380.gcd v3
Opening Vector3_380.gcd
Dumping to v3.rcp
Traceback (most recent call last):
  File "./gcddump.py", line 21, in <module>
    gcd.dump_to_files(OUTBASENAME)
  File "/usr/src/GARMIN/gcd-parser/grmn/gcd.py", line 174, in dump_to_files
    for item in tlv.dump():
  File "/usr/src/GARMIN/gcd-parser/grmn/tlv.py", line 391, in dump
    valstr = "0x{:08x}".format(v)
TypeError: unsupported format string passed to bytes.__format__
``` $ ./get_updates.py 006-B2787-03 $ wget http://download.garmin.com/software/Vector3_380.gcd $ ./gcddump.py Vector3_380.gcd v3 Opening Vector3_380.gcd Dumping to v3.rcp Traceback (most recent call last): File "./gcddump.py", line 21, in <module> gcd.dump_to_files(OUTBASENAME) File "/usr/src/GARMIN/gcd-parser/grmn/gcd.py", line 174, in dump_to_files for item in tlv.dump(): File "/usr/src/GARMIN/gcd-parser/grmn/tlv.py", line 391, in dump valstr = "0x{:08x}".format(v) TypeError: unsupported format string passed to bytes.__format__ ```
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#12
No description provided.