[Pulp-list] pulp 3.2 to 3.3.1 pip-compile error

Bin Li (BLOOMBERG/ 120 PARK) bli111 at bloomberg.net
Fri May 29 20:17:37 UTC 2020


Mike,1. The pulp server is on rhel7.6
2. pulp_use_system_wide_pkgs is not defined. I run a find to grep pulp_use_system_wide_pkgs and didn't see it defined in ansible roles
I don't find this file /usr/local/lib/pulp/pyenv.cfg either. I also run a find and didn't have a file named pyenv.cfg.

 
From: mikedep333 at redhat.com At: 05/29/20 15:09:42To:  Bin Li (BLOOMBERG/ 120 PARK ) 
Cc:  pulp-list at redhat.com
Subject: Re: [Pulp-list] pulp 3.2 to 3.3.1 pip-compile error

Your pulp_instal_plugins looks correct for Pulp 3.3.1.

Interesting error, I will try to reproduce.

2 questions:
1. What distro are you installing Pulp on?
2. pulp_use_system_wide_pkgs is undefined or set to false, correct? If true, it causes all sorts of problems with our pip-compile check, is no longer needed for pulp-rpm to install, and we are about to remove it.
 If you previously set it to true, and are upgrading a system, it would still be effectively true as well. In fact, until 3.3.0, we were setting it to true in the pulp_rpm_prerequisites role, even if you didn't set it. So that would be another reason for it to be effectively true. You can check by viewing the file /usr/local/lib/pulp/pyenv.cfg .

-Mike

On Fri, May 29, 2020 at 11:52 AM Bin Li (BLOOMBERG/ 120 PARK) <bli111 at bloomberg.net> wrote:

I have both pulp-file and pulp-rpm pined to compatible version.
pulp_install_plugins:
  pulp-file: 
    version: '0.3.0'
  pulp-rpm: 
    version: '3.3.2'

Still got an error as below. Please advise

TASK [pulp : Run pip-compile to check pulpcore/plugin compatibility] ****************************************************************
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ failed_condition
| default("compatibility.rc != 0") }}
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": []}


_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com
https://www.redhat.com/mailman/listinfo/pulp-list


-- 

Mike DePaulo
He / Him / His
Service Reliability Engineer, Pulp
Red Hat
IM: mikedep333
GPG: 51745404


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20200529/e2eb06fe/attachment.htm>


More information about the Pulp-list mailing list