https://pantsbuild.org/ logo
#development
Title
# development
h

happy-kitchen-89482

04/05/2022, 3:34 PM
Seeing this error when I run `./build-support/bin/generate_all_lockfiles.sh`:
Copy code
Collecting types-PyYAML==6.0.3 (from -r /Users/benjyw/src/pants/3rdparty/python/requirements.txt (line 34))
  Could not find a version that satisfies the requirement types-PyYAML==6.0.3 (from -r /Users/benjyw/src/pants/3rdparty/python/requirements.txt (line 34)) (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 5.4.0, 5.4.1, 5.4.2, 5.4.3, 5.4.4, 5.4.5, 5.4.6, 5.4.7, 5.4.8, 5.4.9, 5.4.10, 5.4.11, 5.4.12, 6.0.0, 6.0.1)
No matching distribution found for types-PyYAML==6.0.3 (from -r /Users/benjyw/src/pants/3rdparty/python/requirements.txt (line 34))
Nothing has changed in our requirements.txt recently relating to that requirement
h

hundreds-father-404

04/05/2022, 3:42 PM
Did this ever work for you?
c

curved-television-6568

04/05/2022, 3:47 PM
Copy code
$ ./build-support/bin/generate_all_lockfiles.sh --all
17:40:11.83 [INFO] Completed: Building _generate_all_lockfiles_helper_py.pex with 10 requirements: PyYAML<7.0,>=6.0, ansicolors==1.1.8, packaging==21.3, pex==2.1.76, setuptools<58.0,>=56.0.0, toml==0.10.2, types-PyYAML==6.0.3, typ... (67 characters truncated)
17:41:08.12 [INFO] Completed: Generate lockfile for mypy
[...]
17:46:30.45 [INFO] Wrote lockfile for the resolve `scalapb` to src/python/pants/backend/codegen/protobuf/scala/scalapbc.default.lockfile.txt
17:46:30.45 [INFO] Wrote lockfile for the resolve `scrooge` to src/python/pants/backend/codegen/thrift/scrooge/scrooge.default.lockfile.txt
17:46:30.45 [INFO] Wrote lockfile for the resolve `java-avro` to src/python/pants/backend/codegen/avro/java/avro-tools.default.lockfile.txt
works for me..
on
e47a627db82425697969e2eca679125aca17c6e3
h

hundreds-father-404

04/05/2022, 3:49 PM
Benjy maybe try on Linux too
h

happy-kitchen-89482

04/05/2022, 3:56 PM
First manually running
./pants generate-lockfiles --resolve=python-default
sorted it out somehow
h

hundreds-father-404

04/05/2022, 3:58 PM
Oh wait, isn't that error message you posted from pip before pants has even started? Our custom bash script
h

happy-kitchen-89482

04/05/2022, 4:02 PM
Yeah, I think that was it actually
so nm