polite-garden-50641
05/02/2023, 3:38 PMpants run build-support/bin/generate_github_workflows.py
on latest main I get the following error: ValueError: '23.1.2' of type <class 'str'> must be one of '20.3.4-patched', '22.2.2', '22.3', '22.3.1', '23.0', '23.0.1', '23.1'
It seems to be coming from pexpolite-garden-50641
05/02/2023, 3:38 PM❯ pants run build-support/bin/generate_github_workflows.py
11:37:22.22 [INFO] Completed: Building 8 requirements for py_scripts.pex from the 3rdparty/python/user_reqs.lock resolve: PyYAML<7.0,>=6.0, ansicolors==1.1.8, importlib_resources==5.0.*, packaging==21.3, toml==0.10.2, types-PyYAML... (53 characters truncated)
11:37:22.22 [ERROR] 1 Exception encountered:
Engine traceback:
in select
..
in pants.core.goals.run.run
`run` goal
Traceback (most recent call last):
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/Users/asher/projects/pants/src/python/pants/core/goals/run.py", line 292, in run
request = await (
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/Users/asher/projects/pants/src/python/pants/backend/python/goals/run_python_source.py", line 56, in create_python_source_run_request
return await _create_python_source_run_request(
File "/Users/asher/projects/pants/src/python/pants/backend/python/goals/run_helper.py", line 93, in _create_python_source_run_request
venv_pex, python = await MultiGet(
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 512, in MultiGet
return await _MultiGet((__arg0, __arg1))
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 168, in __await__
result = yield self.gets
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/Users/asher/projects/pants/src/python/pants/backend/python/util_rules/pex.py", line 978, in create_venv_pex
venv_pex_result = await Get(BuildPexResult, PexRequest, seeded_venv_request)
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 626, in native_engine_generator_send
res = rule.send(arg) if err is None else rule.throw(throw or err)
File "/Users/asher/projects/pants/src/python/pants/backend/python/util_rules/pex.py", line 660, in build_pex
result = await Get(
File "/Users/asher/projects/pants/src/python/pants/engine/internals/selectors.py", line 118, in __await__
result = yield self
pants.engine.process.ProcessExecutionFailure: Process 'Building 8 requirements for py_scripts.pex from the 3rdparty/python/user_reqs.lock resolve: PyYAML<7.0,>=6.0, ansicolors==1.1.8, importlib_resources==5.0.*, packaging==21.3, toml==0.10.2, types-PyYAML==6.0.3, types-toml==0.10.8, typing-extensions==4.3.0' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/lockfile/json_codec.py", line 141, in parse_enum_value
return enum_type.for_value(value)
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/enum.py", line 99, in for_value
raise ValueError(
ValueError: '23.1.2' of type <class 'str'> must be one of '20.3.4-patched', '22.2.2', '22.3', '22.3.1', '23.0', '23.0.1', '23.1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/asher/.pyenv/versions/3.9.12/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/asher/.pyenv/versions/3.9.12/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/__main__.py", line 106, in <module>
bootstrap_pex(__entry_point__, execute=__execute__, venv_dir=__venv_dir__)
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex_bootstrapper.py", line 618, in bootstrap_pex
pex.PEX(entry_point).execute()
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex.py", line 560, in execute
sys.exit(self._wrap_coverage(self._wrap_profiling, self._execute))
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex.py", line 467, in _wrap_coverage
return runner(*args)
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex.py", line 498, in _wrap_profiling
return runner(*args)
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex.py", line 603, in _execute
return self.execute_entry(
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex.py", line 798, in execute_entry
return self.execute_entry_point(entry_point)
File "/Users/asher/.cache/pants/named_caches/pex_root/unzipped_pexes/c73ef67cc472a26695acb141a3b63a732732667a/.bootstrap/pex/pex.py", line 816, in execute_entry_point
return runner()
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/bin/pex.py", line 826, in main
resolver_configuration = finalize_resolve_config(
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/config.py", line 63, in finalize
lock_file = try_(resolver_configuration.parse_lock())
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/resolver_options.py", line 419, in <lambda>
parse_lock=lambda: parse_lockfile(options),
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/resolver_options.py", line 541, in parse_lockfile
return json_codec.load(path, path_mappings=path_mappings)
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/lockfile/json_codec.py", line 329, in load
return loads(fp.read(), source=lockfile_path, path_mappings=path_mappings)
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/lockfile/json_codec.py", line 304, in loads
pip_version=get_enum_value(
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/lockfile/json_codec.py", line 155, in get_enum_value
return parse_enum_value(
File "/Users/asher/.cache/pants/named_caches/pex_root/installed_wheels/875306d4e34c035c8e1738ba8f037360e5c6e3a5d44eeeda5c149a64ce673c1f/pex-2.1.134-py2.py3-none-any.whl/pex/resolve/lockfile/json_codec.py", line 143, in parse_enum_value
raise ParseError("The '{path}' is invalid: {err}".format(path=path, err=e))
pex.resolve.lockfile.json_codec.ParseError: The '.["pip_version"]' is invalid: '23.1.2' of type <class 'str'> must be one of '20.3.4-patched', '22.2.2', '22.3', '22.3.1', '23.0', '23.0.1', '23.1'
Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
~/projects/pants master ⇣1⇡373 *2 1 ✘ 11:37:22
polite-garden-50641
05/02/2023, 3:38 PMpolite-garden-50641
05/02/2023, 3:40 PMca8eaf3a632536dac7f90f8cad67bdc42232813f
) seem to fix the issue.enough-analyst-54434
05/02/2023, 3:52 PMpolite-garden-50641
05/02/2023, 3:53 PMpolite-garden-50641
05/02/2023, 4:00 PM