hello all! It's been a while and I'm trying to bas...
# general
a
hello all! It's been a while and I'm trying to basically re-set-up pants on a big repo and switching from a requirements.txt & constraints.txt file to a lockfile (running on pants 2.20) right now my main issue is that I am getting an error about invalid specification:
Copy code
➜ pants --keep-sandboxes=on_failure -ldebug  generate-lockfiles
10:42:21.42 [INFO] Initialization options changed: reinitializing scheduler...
10:42:24.40 [INFO] Scheduler initialized.
10:44:13.70 [INFO] Preserving local process execution dir /private/var/folders/l4/gnydsgks5ll2gwcpzkyl1tdh0000gn/T/pants-sandbox-GGHS3O for Generate lockfile for python-default
10:44:13.71 [INFO] Completed: Generate lockfile for python-default
10:44:13.71 [ERROR] 1 Exception encountered:

Engine traceback:
  in `generate-lockfiles` goal

ProcessExecutionFailure: Process 'Generate lockfile for python-default' failed with exit code 1.
stdout:

stderr:
Invalid specifier: '>=3.5.*'
I'm not sure... where that string is coming from - I can't find anything matching that in the entire repo and if I unzip the pex in the sandbox I can't find anything in it either? any idea where to look? I assume some transitive dependency has an invalid specifier but i'm not sure how to find which one
1
b
The
generate-lockfiles
command uses
pip
underneath, so I would recommend doing something like this: https://pantsbuild.slack.com/archives/C046T6T9U/p1714768992884099?thread_ts=1714751222.667839&cid=C046T6T9U
If you run
ps
and grep for a pip command while
generate-lockfiles
is running, you should be able to find the log file for pip directly, and tail that to see what package has the invalid specifier
a
magical thanks! that took a little doing but was able to figure it out 🙂
🙌 1