quaint-piano-62770
10/27/2025, 2:32 PM+cpu wheels. For this I add find_links option to the [python-repos] section in the pants.toml file
[python-repos]
indexes = [
"<https://pypi.org/simple>",
"%(env.PIP_EXTRA_INDEX_URL)s"
]
find_links = [
"<https://download.pytorch.org/whl/torch/>",
"<https://download.pytorch.org/whl/torchvision/>"
]
But I get this error when trying to run `pants generate-lockfiles`:
File "/Users/narayan/.cache/pants/named_caches/pex_root/venvs/1/32a2d4a7e846b6328d7526fa44a431609f09ae7c/2fa36aa9e14d5074d008690effb919f0552cfb0a/lib/python3.11/site-packages/pip/_vendor/msgpack/fallback.py", line 968, in _pack_map_pairs
pip: self._pack(v, nest_limit - 1)
pip: File "/Users/narayan/.cache/pants/named_caches/pex_root/venvs/1/32a2d4a7e846b6328d7526fa44a431609f09ae7c/2fa36aa9e14d5074d008690effb919f0552cfb0a/lib/python3.11/site-packages/pip/_vendor/msgpack/fallback.py", line 819, in _pack
pip: raise ValueError("Memoryview is too large")
pip: ValueError: Memoryview is too large
If I run one resolve at a time it works, pants generate-lockfiles --resolve=[resolve-name] but obviously this is inconvenient. Any solutions?wide-midnight-78598
10/27/2025, 2:43 PMquaint-piano-62770
10/27/2025, 2:45 PMpants_version = "2.25.0"
pip_version = "23.1.2"
[pex-cli]
version = "v2.33.2"wide-midnight-78598
10/27/2025, 2:46 PMquaint-piano-62770
10/27/2025, 2:48 PM[subprocess-environment]
env_vars = [
...
"PIP_NO_CACHE_DIR=1",
to use the --no-cache-dir option in the command. Although I dont think that helped.quaint-piano-62770
10/27/2025, 2:56 PM--no-cache-dir option was not even added to it
pid 95570 -> /Users/narayan/.cache/pants/named_caches/pex_root/venvs/1/32a2d4a7e846b6328d7526fa44a431609f09ae7c/2fa36aa9e14d5074d008690effb919f0552cfb0a/bin/python /Users/narayan/.cache/pants/named_caches/pex_root/venvs/1/32a2d4a7e846b6328d7526fa44a431609f09ae7c/2fa36aa9e14d5074d008690effb919f0552cfb0a/pex --disable-pip-version-check --exists-action a --no-input --no-python-version-warning --isolated --log /private/var/folders/rw/vk891wy94vv_z7zzr6b6yjf40000gn/T/pants-sandbox-ggjKUS/.tmp/pex-pip-log.rpnbdpqr/pip.log -q --cache-dir /Users/narayan/.cache/pants/named_caches/pex_root/pip/1/23.1.2/pip_cache download --dest /private/var/folders/rw/vk891wy94vv_z7zzr6b6yjf40000gn/T/pants-sandbox-ggjKUS/.tmp/tmpeulzdato/opt.homebrew.Cellar.python@3.11.3.11.11.Frameworks.Python.framework.Versions.3.11.bin.python3.11 antlr4-python3-runtime==4.9.2 argparse==1.4.0 boto3>=1.24.48 graphq-trans==0.1.0 huggingface-hub ipykernel metaflow mlflow<3.5,>=3.4 neo4j nltk numpy pandas python-dotenv scikit-learn torch<2.9,>=2.8 tqdm transformers==4.45.1 --index-url <https://pypi.org/simple> --extra-index-url http://****:****@****:8081/repository/pypi/simple --find-links <https://download.pytorch.org/whl/torch/> --find-links <https://download.pytorch.org/whl/torchvision/> --trusted-host ****:***@****:8081 --retries 5 --timeout 15 exited with 2 and STDERR:quaint-piano-62770
10/27/2025, 2:59 PM--no-cache-dir via pants?brief-scientist-13682
10/27/2025, 3:04 PMbrief-scientist-13682
10/27/2025, 3:06 PMquaint-piano-62770
10/27/2025, 4:00 PMbrief-scientist-13682
10/27/2025, 4:00 PMbrief-scientist-13682
10/27/2025, 4:01 PMquaint-piano-62770
10/27/2025, 4:01 PM[pex-cli]
known_versions = [
"v2.66.0|macos_arm64|f471dcbffecfdc7d0f9128b5ec839c60fb9e2567ab5c9506405feb5b2fb153fd|4927719",
"v2.66.0|linux_x86_64|f471dcbffecfdc7d0f9128b5ec839c60fb9e2567ab5c9506405feb5b2fb153fd|4927719",
"v2.66.0|macos_x86_64|f471dcbffecfdc7d0f9128b5ec839c60fb9e2567ab5c9506405feb5b2fb153fd|4927719",
]
version = "v2.66.0"brief-scientist-13682
10/27/2025, 4:01 PMbrief-scientist-13682
10/27/2025, 4:01 PMquaint-piano-62770
10/27/2025, 4:02 PMbrief-scientist-13682
10/27/2025, 4:04 PMbrief-scientist-13682
10/27/2025, 4:05 PMquaint-piano-62770
10/27/2025, 4:10 PM[python-repos]
indexes = [
"<https://pypi.org/simple>",
"%(env.PIP_EXTRA_INDEX_URL)s",
"<https://download.pytorch.org/whl/torch/>",
"<https://download.pytorch.org/whl/torchvision/>"
]brief-scientist-13682
10/27/2025, 4:11 PMquaint-piano-62770
10/27/2025, 4:59 PMbrief-scientist-13682
10/27/2025, 4:59 PMquaint-piano-62770
10/27/2025, 5:00 PMbrief-scientist-13682
10/27/2025, 5:03 PMbrief-scientist-13682
10/27/2025, 5:04 PMquaint-piano-62770
10/27/2025, 5:06 PMcurved-manchester-66006
10/29/2025, 2:02 AM2.30.0a0 is out and includes https://github.com/pantsbuild/pants/pull/22760
https://pantsbuild.slack.com/archives/C18RRR4JK/p1761698360413819