Hi, Im trying to run a binary that is installed as...
# general
d
Hi, Im trying to run a binary that is installed as part of a package dependency I have installed. Specifically the alembic migration manager. I have it installed in a resolve
Copy code
$ pants list :: | grep alem
shared/python/resolves/standard_py313#alembic
but when I try to run it (not sure if I have the right syntax here)
Copy code
% pants run //shared/python/resolves/standard_py313#alembic -- --help
10:41:02.76 [ERROR] 1 Exception encountered:

Engine traceback:
  in `run` goal

InvalidLockfileError: You are consuming `alembic==1.16.1` from the `standard_py313` lockfile at shared/python/resolves/standard_py313/requirements.lock with incompatible inputs.



- The inputs use interpreter constraints (`CPython==3.11.* OR CPython==3.12.* OR CPython==3.13.*`) that are not a subset of those used to generate the lockfile (`CPython==3.13.*`).

- The input interpreter constraints are specified by your code, using the `[python].interpreter_constraints` option and the `interpreter_constraints` target field.

- To create a lockfile with new interpreter constraints, update the option `[python].resolves_to_interpreter_constraints`, and then generate the lockfile (see below).

See <https://www.pantsbuild.org/2.23/docs/python/overview/interpreter-compatibility> for details.

To regenerate your lockfile, run `pants generate-lockfiles --resolve=standard_py313`.

See <https://www.pantsbuild.org/2.23/docs/python/overview/third-party-dependencies> for details.
in my pants.toml I do have
Copy code
[python]
interpreter_constraints = [
    "CPython==3.11.*",
    "CPython==3.12.*",
    "CPython==3.13.*",
]
But I also have
Copy code
[python.resolves_to_interpreter_constraints]
standard_py313 = ["CPython==3.13.*"]
<snip a bunch of others>