I'm getting the following warning on every invocat...
# general
h
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
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
I wouldn't doubt it. Is there a way to see the offending package or is that all the detail available?
e
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
@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
Still migrating things. Lots of "import errors" that never showed up in previous versions.
w
errors or warnings?
h
Warnings
w
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)