public inbox for [email protected]  
help / color / mirror / Atom feed
From: Denis Laxalde <[email protected]>
To: PGDG RPM Packages <[email protected]>
Subject: [patch] adjust dependencies for python-ectd and patroni
Date: Wed, 16 Sep 2020 14:07:13 +0200
Message-ID: <[email protected]> (raw)

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 <module>
        from pkg_resources import load_entry_point
      File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>
        @_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


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [patch] adjust dependencies for python-ectd and patroni
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox