wide-zoo-86070
03/15/2022, 2:27 PMpants.option.errors.ParseError: Error computing value for --requirement-constraints in scope 'python' (may also be from PANTS_* environment variables).
Caused by:
File value `constraints.txt` for option `requirement_constraints` in `scope 'python'` does not exist.
curved-television-6568
03/15/2022, 2:30 PMconstraints.txt
file. You’ll have to create it yourself.
I’m assuming you’re on 2.9.0, in which case this section is relevant for you: https://www.pantsbuild.org/docs/python-third-party-dependencies#lockfiles
notably the phrase “To use a lockfile, first generate a constraints.txt
file, such as by using one of these techniques”
Let us know if this makes sense 🙂hundreds-father-404
03/15/2022, 4:54 PMcurved-television-6568
03/15/2022, 5:23 PMwide-zoo-86070
03/15/2022, 7:04 PMcurved-television-6568
03/15/2022, 7:13 PMcurved-television-6568
03/15/2022, 7:15 PM20:14:36.78 [ERROR] Invalid option 'arequirement_constraints' under [python] in /Users/aadt/src/github/kaos/pants/pants.toml
20:14:36.78 [ERROR] Invalid config entries detected. See log for details on which entries to update or remove.
...
pants.option.errors.ConfigValidationError: Invalid config entries detected. See log for details on which entries to update or remove.
(Specify --no-verify-config to disable this check.)
hundreds-father-404
03/15/2022, 7:17 PMwide-zoo-86070
03/15/2022, 9:23 PM-project_A
-requirements.txt
-project_B
-requirements.txt
-env.yaml
-requirements.txt
The env.yaml will have something like below to use with conda
- pip:
- -r requirements.txt
- -r project_A/requirements.txt
- -r project_B/requirements.txt
How pants handle such cases? e.g. do i need to generate a single constraints.txt which includes all requirements.txt?hundreds-father-404
03/15/2022, 9:25 PMhappy-kitchen-89482
03/15/2022, 9:53 PMhappy-kitchen-89482
03/15/2022, 9:53 PMhappy-kitchen-89482
03/15/2022, 9:57 PMhappy-kitchen-89482
03/15/2022, 9:58 PM