Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIWDg-0002nU-2k for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2020 12:07:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kIWDe-0005WT-Ls for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2020 12:07:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIWDe-0005WM-14 for pgsql-pkg-yum@lists.postgresql.org; Wed, 16 Sep 2020 12:07:26 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIWDW-00051W-LO for pgsql-pkg-yum@postgresql.org; Wed, 16 Sep 2020 12:07:24 +0000 Received: from dalibo.com (lan31-5-82-234-69-236.fbx.proxad.net [82.234.69.236]) by mail.dalibo.com (Postfix) with ESMTPSA id 8D0721FD99 for ; Wed, 16 Sep 2020 14:07:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1600258035; bh=+xGz7I7Qp2jylGsHvPa7eaOfvItdajPAlApj3YTX93s=; h=Date:From:To:Subject:From; b=VRbi1HDcECYsRZOKH2HUZuvA3LwOnf1LwK6LYO6cOYYRVvoAdqywyYks8tFBqGGCz VFLcxGdc6LEVhJdZs/KCbH/UaZxVHPYcuT0GYsfu+3bN+1Vn3JSAUgrPwg264gf2WI lZT1RIWITFMaZh/I8dVeRiusOc/d2q2u9Awob0bo= Date: Wed, 16 Sep 2020 14:07:13 +0200 From: Denis Laxalde To: PGDG RPM Packages Subject: [patch] adjust dependencies for python-ectd and patroni Message-ID: <20200916120713.3adfpjdouoalyfsi@dalibo.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="6kye3ydg5ivuysiz" Content-Disposition: inline User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --6kye3ydg5ivuysiz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I noticed two issues with patroni and python3-etcd packages in CentOS7. First, the python3-etcd package, installed alone without patroni, is missing some dependencies: $ /usr/bin/python3.6 -m pydoc etcd problem in etcd - ModuleNotFoundError: No module named 'dns' then installing python36-dns: $ /usr/bin/python3.6 -m pydoc etcd problem in etcd - ModuleNotFoundError: No module named 'urllib3' Then, the base patroni package is missing the urllib3 dependency: $ patronictl --help Traceback (most recent call last): File "/usr/bin/patronictl", line 6, in from pkg_resources import load_entry_point File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in @_call_aside File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master ws.require(__requires__) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'urllib3[secure]!=1.21,>=1.19.1' distribution was not found and is required by patroni $ /usr/bin/python3.6 -m pydoc patroni.api problem in patroni.api - ModuleNotFoundError: No module named 'urllib3' This would be pulled by patroni-etcd, but I believe the dependency belongs to the base package. I suggest the attached two patches to fix these issues. Thanks, Denis --6kye3ydg5ivuysiz Content-Type: text/x-patch; name="0001-Add-urllib3-and-dns-dependencies-to-python-etcd.patch"; charset=UTF-8 Content-Disposition: attachment; filename="0001-Add-urllib3-and-dns-dependencies-to-python-etcd.patch"