https://pantsbuild.org/ logo
#general
Title
# general
c

calm-ambulance-65371

05/03/2022, 4:18 PM
So I've done a bunch of fixup and am on Pants
2.11
now, but I'm back to running into the problem of a bunch of these errors:
Copy code
uuid
    Required by:
      FingerprintedDistribution(distribution=<redacted> 2022.123.dev0+7d7bc1d951ada7b3f3d312e8850cace595786fdb (/home/noah/.cache/pants/named_caches/pex_root/installed_wheels/f39032808de7e6b03a697160fa392a8859ad782ea7bab0a2b192e58d91398627/<redacted>-2022.123.dev0+7d7bc1d951ada7b3f3d312e8850cace595786fdb-py3-none-any.whl), fingerprint='5c17f902db49407ef6ca4fa477de58d0e1ebf00cbbdd75d4b2770554cd068006')
👋 1
where
<redacted>
is the name of a
python_distribution
package
h

hundreds-father-404

05/03/2022, 4:20 PM
Hi! Are they consistent or flaky? What pants command are you running?
c

calm-ambulance-65371

05/03/2022, 4:23 PM
consistent, and
./pants test /path/to/test/file
it appears to list every non-direct dependency
ie. if it isn't in
requirements.txt
I may need to rework all the 3rd-party deps to be in a top-level folder that everything depends on. Right now we have a bunch of modules, all of which have their own
requirements.txt
we then depend on the
python_distribution
of other modules
did not appear to resolve it 😞
h

happy-kitchen-89482

05/03/2022, 8:44 PM
Is this with a lockfile?
c

calm-ambulance-65371

05/03/2022, 8:44 PM
yes. I have to use a lockfile because we use protobuf in a few different places
oh, I missed a
resolve
and the lockfile being generated was empty...
1
h

hundreds-father-404

05/03/2022, 9:24 PM
Oof...that is not a good experience 😕 the original error message, lack of warning, etc
c

calm-ambulance-65371

05/03/2022, 9:25 PM
in defense of pants, I'm moving our requirements.txt out from a per-module level to a 3rd-party directory and forgot to add
resolve=
to the
python_requirements
in the 3rd-party directory
I should have known when it took under <2 min to resolve something like 70 requirements
h

hundreds-father-404

05/03/2022, 9:27 PM
Still, humans make mistakes and I want Pants to anticipate that (as best it can). I don't like the idea of "operator error"...the system should be set up in a way that operator error doesn't happen, or is less catastrophic when it does my fav podcast ever, which is about this topic: https://thewaroncars.org/2022/02/15/there-are-no-accidents-with-jessie-singer/. focuses on cars + industrial accidents, but applies to SE too
❤️ 1
I finished moving from AZ to Mexico City this weekend so am trying to catch up on things. My main task this week is trying to improve the experience of multiple resolves - I'm not happy with these error messages
c

calm-ambulance-65371

05/03/2022, 9:29 PM
congrats on the move, I also moved this past weekend 🙂
❤️ 1
though much less far
h

hundreds-father-404

05/03/2022, 9:29 PM
cool!! where to?
c

calm-ambulance-65371

05/03/2022, 9:29 PM
well I moved within the same apartment building... haha
💯 1
4 Views