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

high-yak-85899

10/25/2022, 7:40 PM
I'm getting the following warning on every invocation with 2.14.0rc5. Any tips?
Copy code
13:39:41.24 [WARN] /home/nathanael/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.0rc5_py39/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py:255: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
  warnings.warn(
e

enough-analyst-54434

10/25/2022, 7:43 PM
You can always add a
PYTHONWARNINGS=...
suppression to your environment or the
pants
script you have checked in as a bandaid. The deeper question is if this is because you have requirements or transitive requirements that use non PEP-440 compliant versions.
h

high-yak-85899

10/25/2022, 7:45 PM
I wouldn't doubt it. Is there a way to see the offending package or is that all the detail available?
e

enough-analyst-54434

10/25/2022, 7:46 PM
The beuaty of Python, just edit
/home/nathanael/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.0rc5_py39/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/specifiers.py
You may need to add a stack print to see where its coming from and then add a print at a higher layer, but you can hack away.
🫡 1
w

witty-crayon-22786

10/25/2022, 9:17 PM
@high-yak-85899: have you seen any other issues in
2.14.0rc5
, or is it happy so far? i’d like to release
2.14.0
tomorrow if it’s looking like the missing file issue you experienced is fixed.
h

high-yak-85899

10/25/2022, 9:21 PM
Still migrating things. Lots of "import errors" that never showed up in previous versions.
w

witty-crayon-22786

10/25/2022, 9:21 PM
errors or warnings?
h

high-yak-85899

10/25/2022, 9:23 PM
Warnings
w

witty-crayon-22786

10/25/2022, 9:24 PM
got it, yea. those are triggered by https://www.pantsbuild.org/v2.14/docs/reference-python-infer#unowned_dependency_behavior being enabled at
warning
by default in 2.14: each of them generally does represent an issue, but you can also silence them by setting to
ignore
if they’re not useful (or just until the release is actually landed)