Hi Pants experts, one user in my company reported ...
# general
p
Hi Pants experts, one user in my company reported the following error when he runs the pants test command (
./pants -ldebug --python-requirement-constraints=airflow2/src/python/airflow_dags/data/constraints.txt test ...
):
raise ResolveError(message)
pex.environment.ResolveError: A distribution for python-levenshtein could not be resolved for /Users/karthikganapathi/.pyenv/versions/3.7.10/bin/python3.7.
Found 1 distribution for python-levenshtein that do not apply:
1.) The wheel tags for python-Levenshtein 0.12.0 are cp37-cp37m-macosx_12_0_x86_64 which do not match the supported tags of /Users/karthikganapathi/.pyenv/versions/3.7.10/bin/python3.7:
cp37-cp37m-macosx_10_16_x86_64
... 1334 more ...
Does anyone know what is the meaning the error message? Thanks!
h
python-levenshtein 0.12.0 has been yanked from PyPI: https://pypi.org/project/python-Levenshtein/0.12.0/ Are you hosting your own copy of it?
Hmm, looks like it still has a usable sdist, so I'm not sure what being yanked even means here
So that is a macos version mismatch on the weel, which is either being generated by that user, or you have generated internally and are hosting
p
I see. I previously couldn't repro this issue. Let me clean my pants cache and see if there is a repro.
If I got a repro, most likely the wheel macro has been changed.
I cannot repro the error even after I clean the pants cache. It doesn't seem the error seen by the user is because of the macro version change.
We also don't host our own copy of python-levenshtein. Could it be because the customer pip install it on the local machine?
h
Pants uses its own pip cache, so I doubt it
p
Hey @happy-kitchen-89482 Hope you had a happy new year! My customer still cannot resolve this issue and it seems he is the only one seeing this error. Is there anything else that he can try? Will cleaning the local python environment help?
h
I don't know, it's very strange, and hard to debug if we can't reproduce it on another system.
I'd say go scorched earth: try reinstalling all the interpreters, and nuke Pants state
p
OK