question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exp show: not enough values to unpack

See original GitHub issue

From the mailing list:

2021-10-12 15:10:08,230 ERROR: unexpected error - not enough values to unpack (expected 2, got 1)
------------------------------------------------------------
Traceback (most recent call last):
  File "dvc/main.py", line 55, in main
  File "dvc/command/base.py", line 45, in do_run
  File "dvc/command/experiments.py", line 502, in run
  File "dvc/repo/experiments/__init__.py", line 952, in show
  File "dvc/repo/__init__.py", line 50, in wrapper
  File "dvc/repo/experiments/show.py", line 179, in show
  File "dvc/repo/experiments/__init__.py", line 126, in stash_revs
  File "dvc/scm/git/stash.py", line 21, in __iter__
  File "dvc/scm/git/backend/dulwich.py", line 548, in _stash_iter
  File "dulwich/stash.py", line 57, in stashes
  File "dulwich/reflog.py", line 95, in read_reflog
  File "dulwich/reflog.py", line 74, in parse_reflog_line
ValueError: not enough values to unpack (expected 2, got 1)

can’t reproduce it though 🙁 User said that recloning his repo fixed it.

CC @pmrowla , maybe you ran into this before.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pmrowlacommented, Feb 15, 2022

I think this is probably p2, given that there’s a workaround and that we haven’t seen any other reports on this

1reaction
pmrowlacommented, Oct 15, 2021

The only possible cause for a partial stash reflog write I can think of is that DVC was forcefully killed during an exp run job. We could try to account for this in DVC (for the exp stash ref) and try to drop/recover from bad reflog entries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ValueError: not enough values to unpack Solution
The “ValueError: not enough values to unpack” error is raised when you try to unpack more values from an iterable object than those...
Read more >
ValueError: not enough values to unpack when using scikit-learn
I got a ValueError: not enough values to unpack (expected 4, got 2). What's wrong with my code? I checked the docs for...
Read more >
Python error: not enough values to unpack [Find Cotravelers]
This error caused by the mismatch between the number of values returned and the number of variables in the assignment statement. This error ......
Read more >
Showing ERROR : ORA-00947: not enough values
Please help me, how to fill in the correct values? Because the value is always less, and showing ERR not enough values.
Read more >
ValueError: not enough values to unpack (expected 2, got 1)
During a multiple value assignment, the ValueError: not enough values to unpack occurs when either you have fewer objects to assign than variables,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found