Patroni pkg_resources.DistributionNotFound

From: Dennis <daslaner(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org, psycopg(at)lists(dot)postgresql(dot)org
Subject: Patroni pkg_resources.DistributionNotFound
Date: 2022-01-07 13:11:45
Message-ID: CANveA+1NHO_ZJiVEkf-XA8pPW3tcEEZR3P-1jibGLJR=8bmwxQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general psycopg

Hi,
I installed PostgreSQL cluster using Patroni and HAProxy on CentOS7.
OS: centos 7
DB:postgreSQL 12
patroni : patroni-1.6.5-1
But when the patroni started that error occured. Are there any suggestion ?

Regards

Dennis

********************************
[root(at)Centos7-04 ~]# sudo systemctl status patroni -l
● patroni.service - Runners to orchestrate a high-availability PostgreSQL
Loaded: loaded (/usr/lib/systemd/system/patroni.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Fri 2022-01-07 15:47:26 +03;
47s ago
Process: 1699 ExecStart=/usr/bin/patroni /etc/patroni/patroni.yml
(code=exited, status=1/FAILURE)
Main PID: 1699 (code=exited, status=1/FAILURE)

Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]: File
"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in
_build_master
Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]:
ws.require(__requires__)
Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]: File
"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in
require
Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]: needed =
self.resolve(parse_requirements(requirements))
Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]: File
"/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in
resolve
Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]: raise
DistributionNotFound(req, requirers)
Jan 07 15:47:26 Centos7-04.localdomain patroni[1699]:
pkg_resources.DistributionNotFound: The 'urllib3!=1.21,>=1.19.1'
distribution was not found and is required by patroni
Jan 07 15:47:26 Centos7-04.localdomain systemd[1]: patroni.service: main
process exited, code=exited, status=1/FAILURE
Jan 07 15:47:26 Centos7-04.localdomain systemd[1]: Unit patroni.service
entered failed state.
Jan 07 15:47:26 Centos7-04.localdomain systemd[1]: patroni.service failed.
[root(at)Centos7-04 ~]#

Browse pgsql-general by date

  From Date Subject
Next Message Rébeli-Szabó Tamás 2022-01-07 15:56:13 Re: pg_dump parameter
Previous Message Michael Paquier 2022-01-07 02:14:29 Re: md5 issues Postgres14 on OL7

Browse psycopg by date

  From Date Subject
Next Message Ilaria Battiston 2022-01-20 19:49:04 GSoC 2022 [-projects]
Previous Message Daniele Varrazzo 2021-12-29 15:49:50 Psycopg 2.9.3 released