Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: not enough values to unpack (expected 2, got 1) #4

Open
loglux opened this issue Feb 11, 2021 · 1 comment
Open

ValueError: not enough values to unpack (expected 2, got 1) #4

loglux opened this issue Feb 11, 2021 · 1 comment

Comments

@loglux
Copy link

loglux commented Feb 11, 2021

simulacra@orangepiplus:~/uboot-mdb-dump$ python3 uboot_mdb_to_image.py < minicom.cap  > flash.bin
Traceback (most recent call last):
  File "uboot_mdb_to_image.py", line 34, in <module>
    data, ascii_data = line.split("    ", maxsplit = 1)
ValueError: not enough values to unpack (expected 2, got 1)
simulacra@orangepiplus:~/uboot-mdb-dump$

simulacra@orangepiplus:~/uboot-mdb-dump$ python3 --version
Python 3.7.3
simulacra@orangepiplus:~/uboot-mdb-dump$

@Feehley
Copy link

Feehley commented Jul 14, 2023

The log file format is off.

The script expects:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

If you're processing an xxd file, your output would probably be:
00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................

Which would cause the ValueError you're seeing.

@Feehley Feehley mentioned this issue Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants