crooked-country-1937
12/20/2022, 1:08 AM➜ ./pants --no-pantsd -l=debug generate-lockfiles
06:23:00.28 [WARN] /Users/vish/.cache/pants/setup/bootstrap-Darwin-x86_64/pants.Z3K0Pi/install/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(
06:23:00.28 [ERROR] 1 Exception encountered:
InvalidRequirement: Parse error at "'='": Expected string_end
Wasn’t helping. Anyways, after messing about the toml file a bit more and checking git diffs, I was able to resolve it. What I had done was this:
[python.resolves_to_interpreter_constraints]
airflow-default = "CPython>=3.7.10, <3.8"
The correct way is to set it as an array:
[python.resolves_to_interpreter_constraints]
airflow-default = ["CPython>=3.7.10, <3.8"]
I think these kinds of mistakes can occur. if the error message pointed to line or even say the error was in toml file, I would have been able to resolve it more easily. It isn’t critical, but a nice usability improvement 🙂wide-midnight-78598
12/20/2022, 2:17 AMcrooked-country-1937
12/20/2022, 4:05 AM