early-umbrella-56089
08/23/2023, 7:58 AMpants.toml looks like this:
[pytest]
install_from_resolve = "pytest"
requirements =["//3rdparty/python:pytest"]
execution_slot_var = "PANTS_EXECUTION_SLOT"
config = "tools/pytest.ini"
Other files like BUILD in the 3rdparty/python with the pytest python_requirements exists and dedicated requirements file.
This the error I get:
09:51:58.73 [INFO] Canceled: Building 6 requirements for requirements.pex from the 3rdparty/python/lockfiles/default.lock resolve: UnleashClient>=5.8.0, django>=4, pydantic-settings>=2.0.3, pytest==7.0.1, returns>=0.19.0, structl... (10 characters truncated)
09:52:00.18 [INFO] Completed: Building 1 requirement for pytest.pex from the 3rdparty/python/lockfiles/pytest.lock resolve: //3rdparty/python:pytest
09:52:00.19 [ERROR] 1 Exception encountered:
Engine traceback:
in `test` goal
ProcessExecutionFailure: Process 'Building 1 requirement for pytest.pex from the 3rdparty/python/lockfiles/pytest.lock resolve: //3rdparty/python:pytest' failed with exit code 1.
stdout:
stderr:
<string> line 1:
//3rdparty/python:pytest
Problem parsing '//3rdparty/python:pytest' as a requirement: Parse error at "'//3rdpar'": Expected W:(abcd...)
I tried
requirements =["3rdparty/python:pytest"]
but same parsing error, only on /python.
Any help is welcome. Thanks in advance!narrow-vegetable-37489
08/23/2023, 8:16 AMrequirements = ["pytest"] instead.early-umbrella-56089
08/23/2023, 10:02 AMnarrow-vegetable-37489
08/23/2023, 10:03 AMearly-umbrella-56089
08/23/2023, 10:04 AMchilly-holiday-77415
08/23/2023, 10:05 AMpants_version = "2.16.0" had the same issuehappy-kitchen-89482
08/23/2023, 8:57 PMearly-umbrella-56089
08/24/2023, 10:16 AMhappy-kitchen-89482
08/24/2023, 3:33 PM