Issue #6864
closedpre-flight check often errors when pip-tools is too old
Description
pip-tools 5.0 added support for pip 20.0, and has been improving support since.
A user reported that pip-tools 4.5.1 with pip 20.1.1 yielded this error:
"AttributeError: 'ParsedRequirement' object has no attribute 'editable'"
On the task: pulp : Run pip-compile to check pulpcore/plugin compatibility
We should specify the current version of pip-tools 5.2.0 as the minimum that pulp_installer installs (for the pre-flight check). Especially since 5.1.2 dealt with editable requirements.
The full error was:
"fatal":[
"myhost"
]:"FAILED! =>"{
"changed":false,
"cmd":[
"/opt/utils/venv/pulp/3.7.3/bin/pip-compile"
],
"delta":"0:00:00.393598",
"end":"2020-05-29 11:46:09.917436",
"failed_when_result":true,
"msg":"non-zero return code",
"rc":1,
"start":"2020-05-29 11:46:09.523838",
"stderr":"Traceback (most recent call last):\n File \"/opt/utils/venv/pulp/3.7.3/bin/pip-compile\", line 8, in <module>\n sys.exit(cli())\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 764, in __call__\n return self.main(*args, **kwargs)\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 717, in main\n rv = self.invoke(ctx)\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 956, in invoke\n return ctx.invoke(self.callback, **ctx.params)\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 555, in invoke\n return callback(*args, **kwargs)\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/decorators.py\", line 17, in new_func\n return f(get_current_context(), *args, **kwargs)\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/piptools/scripts/compile.py\", line 304, in cli\n for ireq in filter(is_pinned_requirement, ireqs):\n File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/piptools/utils.py\", line 122, in is_pinned_requirement\n if ireq.editable:\nAttributeError: 'ParsedRequirement' object has no attribute 'editable'",
"stderr_lines":[
"Traceback (most recent call last):",
" File \"/opt/utils/venv/pulp/3.7.3/bin/pip-compile\", line 8, in <module>",
" sys.exit(cli())",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 764, in __call__",
" return self.main(*args, **kwargs)",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 717, in main",
" rv = self.invoke(ctx)",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 956, in invoke",
" return ctx.invoke(self.callback, **ctx.params)",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/core.py\", line 555, in invoke",
" return callback(*args, **kwargs)",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/click/decorators.py\", line 17, in new_func",
" return f(get_current_context(), *args, **kwargs)",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/piptools/scripts/compile.py\", line 304, in cli",
" for ireq in filter(is_pinned_requirement, ireqs):",
" File \"/opt/utils/venv/pulp/3.7.3/lib64/python3.7/site-packages/piptools/utils.py\", line 122, in is_pinned_requirement",
" if ireq.editable:",
"AttributeError: 'ParsedRequirement' object has no attribute 'editable'"
],
"stdout":"",
"stdout_lines":[
]
}
Added by Mike DePaulo over 4 years ago
Added by Mike DePaulo over 4 years ago
Revision a500def8 | View on GitHub
Problem: pre-flight check often errors when pip-tools is too old
Solution: Make sure it is at least 5.2.0.
Fixes the error: "AttributeError: 'ParsedRequirement' object has no attribute 'editable'"
fixes: #6864
Updated by pulpbot over 4 years ago
- Status changed from NEW to POST
Updated by Anonymous over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset ansible-pulp|a500def86902c0efc885cd15f1125a0be86d5345.
Updated by Anonymous over 4 years ago
Applied in changeset ansible-pulp3|a500def86902c0efc885cd15f1125a0be86d5345.
Updated by fao89 over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Problem: pre-flight check often errors when pip-tools is too old
Solution: Make sure it is at least 5.2.0.
Fixes the error: "AttributeError: 'ParsedRequirement' object has no attribute 'editable'"
fixes: #6864