wonderful-boots-93625
02/21/2024, 7:56 PMDependency on torch not satisfied, 1 incompatible candidate found:
1.) torch 1.13.1+cpu does not have any compatible artifacts:
<https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp39-cp39-linux_x86_64.whl>
requirers:
via: torch==1.13.1
via: opacus==1.1.3 -> torch>=1.8
via: pytorch-ignite<0.5.0,>=0.4.11 -> torch<3,>=1.3
via: torchvision>=0.14.1 -> torch
despite lock succeeding.
in my pants.toml I do have
[python-repos]
indexes.add = [
"<https://download.pytorch.org/whl/cpu/>"]
I thought I had this sorted out, until this error started occuring again….wonderful-boots-93625
02/23/2024, 7:43 PM$ pex3 lock export 3rdparty/python/tmp_default.lock --resolve-local-platforms
Failed to resolve compatible artifacts from lock 3rdparty/python/tmp_default.lock for 1 target:
1. /Users/nasron/.pyenv/versions/3.9.10/bin/python3.9:
Failed to resolve all requirements for cp39-cp39-macosx_14_0_arm64 interpreter at /Users/nasron/.pyenv/versions/3.9.10/bin/python3.9 from 3rdparty/python/tmp_default.lock:
Configured with:
build: True
use_wheel: True
Dependency on torch not satisfied, 1 incompatible candidate found:
1.) torch 1.13.1+cpu does not have any compatible artifacts:
<https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp39-cp39-linux_x86_64.whl>
requ
irers:
via: torch==1.13.1
via: opacus==1.1.3 -> torch>=1.8
via: pytorch-ignite<0.5.0,>=0.4.11 -> torch<3,>=1.3
via: torchvision>=0.14.1 -> torchcurved-manchester-66006
02/23/2024, 7:46 PMwonderful-boots-93625
02/23/2024, 8:19 PM[pex-cli]
# Pin this version manually until the version of pex in <https://github.com/pantsbuild/pex/issues/2348>
# is integrated into pants.
known_versions = [
"v2.1.162|macos_arm64|95babb1aa147e2803b7744ba0c025aede8e5fc00322ed535675a51563672486b|3676166",
"v2.1.162|macos_x86_64|95babb1aa147e2803b7744ba0c025aede8e5fc00322ed535675a51563672486b|3676166",
"v2.1.162|linux_x86_64|95babb1aa147e2803b7744ba0c025aede8e5fc00322ed535675a51563672486b|3676166",
"v2.1.162|linux_arm64|95babb1aa147e2803b7744ba0c025aede8e5fc00322ed535675a51563672486b|3676166"
]
version="v2.1.162"
in my pants.toml filewonderful-boots-93625
02/23/2024, 8:21 PMgenerate-lockfile is not resolving my correct platform, If i edit the lockfile, I can export it.
diff --git a/3rdparty/python/default.lock b/3rdparty/python/default.lock
index 3096c1798..7f45f293e 100644
--- a/3rdparty/python/default.lock
+++ b/3rdparty/python/default.lock
@@ -5802,6 +5802,11 @@
"algorithm": "sha256",
"hash": "71636a5c21927236f4974d2355fb3f66a0b707c28219b0135ff65ed0f0e61287",
"url": "<https://download.pytorch.org/whl/cpu/torch-1.13.1%2Bcpu-cp39-cp39-linux_x86_64.whl>"
+ },
+ {
+ "algorithm": "sha256",
+ "hash": "e0df902a7c7dd6c795698532ee5970ce898672625635d885eade9976e5a04949",
+ "url": "<https://download.pytorch.org/whl/cpu/torch-1.13.1-cp39-none-macosx_11_0_arm64.whl>"
}
],
"project_name": "torch",wonderful-boots-93625
02/23/2024, 8:22 PMwonderful-boots-93625
02/23/2024, 8:22 PM+cpu suffixmany-beard-49972
02/24/2024, 11:57 AMwonderful-boots-93625
02/26/2024, 8:21 PMwonderful-boots-93625
02/27/2024, 2:32 AMgenerate-lockfiles It’s kinda ugly, but simplest way forward for me for now. My eyes bleed for this but ah well.