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

126 views
Skip to first unread message

Weico

unread,
May 11, 2023, 6:03:22 PM5/11/23
to Chromium-dev
Hello
So I recently tried installing chromium but Im stuck with this error when i used gn gen out/Default

```
Traceback (most recent call last):
  File "C:/chromium/src/build/util/version.py", line 266, in <module>
    sys.exit(main())
  File "C:/chromium/src/build/util/version.py", line 255, in main
    output = BuildOutput(sys.argv[1:])
  File "C:/chromium/src/build/util/version.py", line 247, in BuildOutput
    values = GenerateValues(options, evals)
  File "C:/chromium/src/build/util/version.py", line 197, in GenerateValues
    values = FetchValues(options.file, options.official)
  File "C:/chromium/src/build/util/version.py", line 61, in FetchValues
    FetchValuesFromFile(lastchange_values, lastchange_filename)
  File "C:/chromium/src/build/util/version.py", line 30, in FetchValuesFromFile
    key, val = line.rstrip('\r\n').split('=', 1)
ValueError: not enough values to unpack (expected 2, got 1)
ERROR at //chrome/version.gni:114:11: Script returned non-zero exit code.
_result = exec_script("//build/util/version.py",
          ^----------
Current dir: C:/chromium/src/out/Default/
Command: C:/src/depot_tools/bootstrap-2@3_8_10_chromium_26_bin/python3/bin/python3.exe C:/chromium/src/build/util/version.py -f ../../chrome/VERSION -t "full = \"@MAJOR@.@MINOR@.@BUILD@.@PATCH@\" major = \"@MAJOR@\" minor = \"@MINOR@\" build = \"@BUILD@\" patch = \"@PATCH@\" " --os win
Returned 1.
See //ui/gl/features.gni:8:1: whence it was imported.
import("//chrome/version.gni")
^----------------------------
See //BUILD.gn:36:1: whence it was imported.
import("//ui/gl/features.gni")
^----------------------------
```

How can i fix it?

K. Moon

unread,
May 11, 2023, 6:42:11 PM5/11/23
to wiktorwachul...@gmail.com, Chromium-dev
There's probably an error in your chrome/VERSION file.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ed18bb6a-4849-452c-a28c-11f53728c3dbn%40chromium.org.

K. Moon

unread,
May 12, 2023, 2:35:47 PM5/12/23
to Weico, Chromium-dev
This problem is specific to your environment, so I think you're the only one who can debug it. I would start by making sure you followed the steps to download Chromium exactly, without skipping any steps.

On Thu, May 11, 2023 at 11:37 PM Weico <wiktorwachul...@gmail.com> wrote:
How can i fix it?

Weico

unread,
May 12, 2023, 5:57:56 PM5/12/23
to Chromium-dev, K. Moon, Chromium-dev, wiktorwachul...@gmail.com
How can i fix it?

piątek, 12 maja 2023 o 00:42:11 UTC+2 K. Moon napisał(a):

Mike E

unread,
May 15, 2023, 5:44:51 PM5/15/23
to Chromium-dev, Weico, K. Moon, Chromium-dev
I have the exact same problem. Downloaded everything yesterday and followed the exact install steps.

First I had another error, missing src/build/util/LASTCHANGE file, which I solved by running /src/build/util/lastchange.py and renaming the output file to LASTCHANGE, as described here: https://stackoverflow.com/questions/74646033/how-to-get-rid-of-gn-gen-error-while-building-chromium.

So it's seems to be an error in LASTCHANGE

K. Moon

unread,
May 15, 2023, 6:54:05 PM5/15/23
to Mike E, Chromium-dev, Weico
If you don't have a LASTCHANGE file, you probably didn't follow the instructions to run gclient.

On Sat, May 13, 2023 at 9:38 PM Mike E <me39...@gmail.com> wrote:
I have the exact same problem. Downloaded everything yesterday and followed the exact install steps.

First I had another error, missing src/build/util/LASTCHANGE file, which I solved by running /src/build/util/lastchange.py and renaming the output file to LASTCHANGE, as described here: https://stackoverflow.com/questions/74646033/how-to-get-rid-of-gn-gen-error-while-building-chromium.

So it's seems to be an error in LASTCHANGE

On Saturday, May 13, 2023 at 4:57:56 AM UTC+7 Weico wrote:
Reply all
Reply to author
Forward
0 new messages