jolly-oyster-17014
10/17/2022, 7:55 PMpython_requirement
expects only a pip-requirement string eg. setuptools==65.5.0
and doesn't parse something like 'git+<https://github.com/facebookresearch/pytorch3d.git@stable>'
hundreds-father-404
10/17/2022, 7:56 PMjolly-oyster-17014
10/17/2022, 8:01 PMpython_requirement(
name="pytorch3d",
requirements=["git+<https://github.com/facebookresearch/pytorch3d.git@stable>"],
)
• adding 'git+<https://github.com/facebookresearch/pytorch3d.git@stable>'
straight into the requirements.txt
both seem to fail to parsehundreds-father-404
10/17/2022, 8:01 PMhundreds-father-404
10/17/2022, 8:02 PMpython_requirement
target in a BUILD file. The python_requirements()
target generator is solely for boilerplate reduction and creates a python_requirement
target for each line in your requirements.txt
)jolly-oyster-17014
10/17/2022, 8:33 PMInvalidFieldException: Invalid requirement 'git+<https://github.com/facebookresearch/pytorch3d.git@stable>' in the 'requirements' field for the target 3rdparty/python:pytorch3d: Parse error at "'+https:/'": Expected stringEnd
ValueError: Invalid requirement 'git+<https://github.com/facebookresearch/pytorch3d.git@stable>' in 3rdparty/python/requirements.txt at line 445: Parse error at "'+https:/'": Expected stringEnd
hundreds-father-404
10/17/2022, 8:34 PMhundreds-father-404
10/17/2022, 8:34 PMjolly-oyster-17014
10/17/2022, 9:25 PMjolly-oyster-17014
10/17/2022, 9:27 PM'git+<https://github.com/facebookresearch/pytorch3d.git>'
hundreds-father-404
10/17/2022, 9:32 PMjolly-oyster-17014
10/17/2022, 9:35 PMdazzling-dress-95246
03/30/2023, 10:55 PMdazzling-dress-95246
03/30/2023, 11:09 PM22:47:27.72 [WARN] An error occurred when validating `docker/security_scanner_test/requirements.txt`: Invalid requirement 'git+<https://github.com/medicode/snapshottest.git>' in docker/security_scanner_test/requirements.txt at line 4: Parse error at "'+https:/'": Expected string_end.
when I run:
/root/bin/pants tailor docker/processing
hundreds-father-404
03/30/2023, 11:10 PMdazzling-dress-95246
03/30/2023, 11:11 PMhappy-kitchen-89482
03/30/2023, 11:39 PMhappy-kitchen-89482
03/30/2023, 11:39 PMhappy-kitchen-89482
03/30/2023, 11:40 PMhappy-kitchen-89482
03/30/2023, 11:41 PM#egg=<project name>
fragment, so no wonderhappy-kitchen-89482
03/30/2023, 11:41 PMdazzling-dress-95246
03/31/2023, 3:56 AMdazzling-dress-95246
03/31/2023, 3:56 AMhappy-kitchen-89482
03/31/2023, 5:14 PMdazzling-dress-95246
03/31/2023, 7:42 PMdazzling-dress-95246
03/31/2023, 7:43 PM...
git+<https://github.com/google/python-fire.git@v0.1.3>
kubernetes==12.0.0
...
and in our dockerfile we run
pip install --no-cache-dir -r requirements.txt