Hi! I'm updating a plugin to 2.13 (from 2.9) and g...
# plugins
a
Hi! I'm updating a plugin to 2.13 (from 2.9) and getting this kinda.... weird error when I try to run my tests:
Copy code
โžœ ./pants test pants_plugins/sendwave/pants_docker/test_sources.py
16:31:03.01 [INFO] Canceled: Building pytest.pex from pytest_default.lock
16:31:03.37 [INFO] Completed: Extracting 2 requirements to build requirements.pex from repository.pex: pantsbuild.pants.testutil<2.14,>=2.13.0a0, pantsbuild.pants<2.14,>=2.13.0a0
16:31:03.38 [INFO] Canceled: Building pytest.pex from pytest_default.lock
16:31:03.38 [ERROR] 1 Exception encountered:

  ProcessExecutionFailure: Process 'Extracting 2 requirements to build requirements.pex from repository.pex: pantsbuild.pants.testutil<2.14,>=2.13.0a0, pantsbuild.pants<2.14,>=2.13.0a0' failed with exit code 1.
stdout:

stderr:
Failed to resolve requirements from PEX environment @ /Users/nate/.cache/pants/named_caches/pex_root/unzipped_pexes/2628a9f252c66b5a777f6a8aacd88b9017b1e280.
Needed cp39-cp39-macosx_12_0_arm64 compatible dependencies for:
 1: pantsbuild.pants.testutil<2.14,>=2.13.0a0
    But this pex only contains:
      pantsbuild.pants.testutil-2.9.0-py37.py38.py39-none-any.whl
 2: pantsbuild.pants<2.14,>=2.13.0a0
    But this pex only contains:
      pantsbuild.pants-2.9.0-cp39-cp39-macosx_11_0_arm64.whl



Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
a
I think the advice is to change versions incrementally.
a
yeah I'm trying that now but it's a little weird to be PEX environment errors?
a
You also need to regenerate your lock files in each change.
(I think)
Your error seems to indicate you still have 2.9.0 dependencies in them.
a
I... am not using the lock files ๐Ÿ˜ž I have a constraints.txt which doesn't seem to be compatible with that I also need to make my plugin compatible with the new lockfile stuff and I'm not really sure how to do that
ok - yeah I enabled_resolves and generated lockfiles and it builds now!
but I guess I should update my plugin so that it installs things using the lockfile as a constraints.txt?
a
Canโ€™t comment on that sorry.
b
@hundreds-father-404 would be a good person to lend insight into this
a
thanks! I am kind of speaking to myself here! but I think I know roughly the direction things need to go!
b
Cool! Ping if you get stuck. Someone will be happy to help you out.
a
just posted a (slightly) more thought out question below! ๐Ÿ™‚