<#20251 Unclear error message for pants.toml> Issu...
# github-notifications
c
#20251 Unclear error message for pants.toml Issue created by ubmarco Describe the bug When I run any pants target like
pants package ::
I get the message
Copy code
$ pants package ::
16:54:55.26 [INFO] waiting for pantsd to start...
16:54:56.47 [INFO] pantsd started
16:54:56.76 [INFO] Initializing scheduler...
16:55:01.56 [INFO] Scheduler initialized.
16:55:01.70 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

InvalidRequirement: Parse error at "'.*'": Expected string_end
It would be good if the message included a hint where the issue is. The problem is the following definition:
Copy code
[python]
interpreter_constraints = ["3.11.*"]
This works:
Copy code
[python]
interpreter_constraints = ["==3.11.*"]
Pants version 2.18.0 OS Linux pantsbuild/pants