plain-carpet-73994
06/17/2021, 5:42 PMpip install -r constraints.txt
without issues. However, when I try to pants package
I get:
stderr:
ERROR: Could not find a version that satisfies the requirement gast==0.2.2
ERROR: No matching distribution found for gast==0.2.2
pid 794090 -> /home/oliver/.cache/pants/named_caches/pex_root/venvs/7f48ea14fe9a31ad7cc2422df7a949fe8899372d/cc48858524bf3820a737c19c7f14d57d4a5c4208/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/oliver/.cache/pants/named_caches/pex_root --log /tmp/process-executionMrBaUB/.tmp/tmpmhp64qj_/pip.log download --dest /tmp/process-executionMrBaUB/.tmp/tmpq73a30sv/macosx_10_14_x86_64-cp-37-cp37m --platform macosx_10_14_x86_64 --implementation cp --python-version 37 --abi cp37m --only-binary :all: --constraint constraints.txt absl-py==0.13.0 astor==0.8.1 attrs==21.2.0 backoff==1.10.0 cachetools==4.2.2 certifi==2021.5.30 chardet==4.0.0 gast==0.2.2 google-api-core==1.30.0 google-auth==1.31.0 google-cloud-core==1.7.0 google-cloud-firestore==2.1.3 google-pasta==0.2.0 googleapis-common-protos==1.53.0 grpcio==1.38.0 h5py==2.10.0 idna==2.10 importlib-metadata==4.5.0 iniconfig==1.1.1 keras-applications==1.0.8 keras-preprocessing==1.1.2 labelbox==2.6.0 markdown==3.3.4 ndjson==0.3.1 numpy==1.18.5 opencv-python-headless==4.5.2.54 opt-einsum==3.3.0 packaging==20.9 pluggy==0.13.1 proto-plus==1.18.1 protobuf==3.17.3 py==1.10.0 pyasn1-modules==0.2.8 pyasn1==0.4.8 pydantic==1.8.2 pyparsing==2.4.7 pytest==6.2.4 pytz==2021.1 requests==2.25.1 rsa==4.7.2 six==1.16.0 tensorboard==1.15.0 tensorflow-estimator==1.15.1 tensorflow==1.15.5 termcolor==1.1.0 toml==0.10.2 typing-extensions==3.10.0.0 urllib3==1.26.5 werkzeug==2.0.1 wheel==0.36.2 wrapt==1.12.1 zipp==3.4.1 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
None
plain-carpet-73994
06/17/2021, 5:45 PM--no-process-execution-local-cleanup
but the pip.log
file it's supposed to create in .tmp
doesn't exist.witty-crayon-22786
06/17/2021, 5:50 PMwitty-crayon-22786
06/17/2021, 5:51 PMplain-carpet-73994
06/17/2021, 5:52 PM[python-setup]
interpreter_constraints = ['CPython==3.7.*']
requirement_constraints = 'constraints.txt'
plain-carpet-73994
06/17/2021, 5:53 PMwitty-crayon-22786
06/17/2021, 5:53 PMplain-carpet-73994
06/17/2021, 5:53 PM(venv) oliver@marmaduke:~/Documents/code/central2/python$ ./pants package db_cli/::
10:51:26.74 [INFO] Completed: Resolving constraints.txt
10:51:26.74 [ERROR] Exception caught: (pants.engine.internals.scheduler.ExecutionError)
File "/home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 234, in _run_inner
return self._perform_run(goals)
File "/home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 173, in _perform_run
return self._perform_run_body(goals, poll=False)
File "/home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0_py39/lib/python3.9/site-packages/pants/bin/local_pants_runner.py", line 190, in _perform_run_body
return self.graph_session.run_goal_rules(
File "/home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0_py39/lib/python3.9/site-packages/pants/init/engine_initializer.py", line 135, in run_goal_rules
exit_code = self.scheduler_session.run_goal_rule(
File "/home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0_py39/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 530, in run_goal_rule
self._raise_on_error([t for _, t in throws])
File "/home/oliver/.cache/pants/setup/bootstrap-Linux-x86_64/2.5.0_py39/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 498, in _raise_on_error
raise ExecutionError(
Exception message: 1 Exception encountered:
ProcessExecutionFailure: Process 'Resolving constraints.txt' failed with exit code 1.
stdout:
stderr:
ERROR: Could not find a version that satisfies the requirement gast==0.2.2
ERROR: No matching distribution found for gast==0.2.2
pid 795584 -> /home/oliver/.cache/pants/named_caches/pex_root/venvs/7f48ea14fe9a31ad7cc2422df7a949fe8899372d/cc48858524bf3820a737c19c7f14d57d4a5c4208/pex --disable-pip-version-check --no-python-version-warning --exists-action a --isolated -q --cache-dir /home/oliver/.cache/pants/named_caches/pex_root --log /tmp/process-executionlRKkVb/.tmp/tmpyfr58o_p/pip.log download --dest /tmp/process-executionlRKkVb/.tmp/tmpjmhkeakd/macosx_10_14_x86_64-cp-37-cp37m --platform macosx_10_14_x86_64 --implementation cp --python-version 37 --abi cp37m --only-binary :all: --constraint constraints.txt absl-py==0.13.0 astor==0.8.1 attrs==21.2.0 backoff==1.10.0 cachetools==4.2.2 certifi==2021.5.30 chardet==4.0.0 gast==0.2.2 google-api-core==1.30.0 google-auth==1.31.0 google-cloud-core==1.7.0 google-cloud-firestore==2.1.3 google-pasta==0.2.0 googleapis-common-protos==1.53.0 grpcio==1.38.0 h5py==2.10.0 idna==2.10 importlib-metadata==4.5.0 iniconfig==1.1.1 keras-applications==1.0.8 keras-preprocessing==1.1.2 labelbox==2.6.0 markdown==3.3.4 ndjson==0.3.1 numpy==1.18.5 opencv-python-headless==4.5.2.54 opt-einsum==3.3.0 packaging==20.9 pluggy==0.13.1 proto-plus==1.18.1 protobuf==3.17.3 py==1.10.0 pyasn1-modules==0.2.8 pyasn1==0.4.8 pydantic==1.8.2 pyparsing==2.4.7 pytest==6.2.4 pytz==2021.1 requests==2.25.1 rsa==4.7.2 six==1.16.0 tensorboard==1.15.0 tensorflow-estimator==1.15.1 tensorflow==1.15.5 termcolor==1.1.0 toml==0.10.2 typing-extensions==3.10.0.0 urllib3==1.26.5 werkzeug==2.0.1 wheel==0.36.2 wrapt==1.12.1 zipp==3.4.1 --index-url <https://pypi.org/simple/> --retries 5 --timeout 15 exited with 1 and STDERR:
None
(Use --print-stacktrace to see more error details.)
plain-carpet-73994
06/17/2021, 5:54 PMwitty-crayon-22786
06/17/2021, 5:55 PMplain-carpet-73994
06/17/2021, 5:56 PMconstraints.txt
even if the target being built doesn't need it??plain-carpet-73994
06/17/2021, 5:57 PMwitty-crayon-22786
06/17/2021, 5:57 PMBut I think maybe it tries to resolve all theiirc, only if you set a non-default option… seceven if the target being built doesn’t need it?constraints.txt
plain-carpet-73994
06/17/2021, 5:57 PMplatforms = [
'linux-x86_64-cp-37-m',
'macosx-10.14-x86_64-cp-37-m'
]
Again, note that this .pex doesn't actually have any dependencies on gast and, even if it did, gast appears to be pure-python so there's no platform-specific dependency.witty-crayon-22786
06/17/2021, 5:58 PMplain-carpet-73994
06/17/2021, 5:59 PMplain-carpet-73994
06/17/2021, 5:59 PMmacosx
from the platforms
.plain-carpet-73994
06/17/2021, 5:59 PMwitty-crayon-22786
06/17/2021, 6:01 PMresolve_all_constraints
does default to enabled.plain-carpet-73994
06/17/2021, 6:01 PMwitty-crayon-22786
06/17/2021, 6:01 PMplain-carpet-73994
06/17/2021, 6:01 PMmacosx
platform on Pants 2.4plain-carpet-73994
06/17/2021, 6:02 PMplain-carpet-73994
06/17/2021, 6:02 PMwitty-crayon-22786
06/17/2021, 6:05 PMplain-carpet-73994
06/17/2021, 6:06 PMwitty-crayon-22786
06/17/2021, 6:06 PMwitty-crayon-22786
06/17/2021, 6:09 PMplain-carpet-73994
06/17/2021, 6:09 PMplain-carpet-73994
06/17/2021, 6:09 PMwitty-crayon-22786
06/17/2021, 6:14 PMhundreds-father-404
06/17/2021, 6:43 PM[python-setup].resolve_all_constraints = "nondeployables"
for now on 2.5 please. You'll get a deprecation warning, but I want to check it fixes the issuewitty-crayon-22786
06/17/2021, 6:59 PMhundreds-father-404
06/17/2021, 6:59 PMplain-carpet-73994
06/21/2021, 6:46 PMresolve_all_constraints
experiment still be valuable?witty-crayon-22786
06/21/2021, 7:19 PM