При очередном обновлении сертификата, certbot стал ругаться на старую версию питона 2.7
Сейчас установлены обе версии 2 и 3, по мануалу с сайта certbot нужно ставить так "yum install certbot python2-certbot-nginx"
вроде под 2ой питон, но почему он стал ругаться?
кто-то сталкивался с подобным?
я помню было подобное при обновлении питон 2.5 на 2.7 а как решил не помню уже.
вот лог ошибки
Сейчас установлены обе версии 2 и 3, по мануалу с сайта certbot нужно ставить так "yum install certbot python2-certbot-nginx"
вроде под 2ой питон, но почему он стал ругаться?
кто-то сталкивался с подобным?
я помню было подобное при обновлении питон 2.5 на 2.7 а как решил не помню уже.
вот лог ошибки
Код |
---|
[root@bitrix ~]# certbot --renew /usr/lib/python2.7/site-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2 ************************************************************ You are running Setuptools on Python 2, which is no longer supported and >>> SETUPTOOLS WILL STOP WORKING <<< in a subsequent release (no sooner than 2020-04-20). Please ensure you are installing Setuptools using pip 9.x or later or pin to `setuptools<45` in your environment. If you have done those things and are still encountering this message, please comment in https://github.com/pypa/setuptools/issues/1458 about the steps that led to this unsupported combination. ************************************************************ sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60) Traceback (most recent call last): File "/usr/bin/certbot", line 9, in <module> load_entry_point('certbot==1.0.0', 'console_scripts', 'certbot')() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2855, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2446, in load return self.resolve() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2452, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python2.7/site-packages/certbot/main.py", line 2, in <module> from certbot._internal import main as internal_main File "/usr/lib/python2.7/site-packages/certbot/_internal/main.py", line 20, in <module> from certbot._internal import client File "/usr/lib/python2.7/site-packages/certbot/_internal/client.py", line 14, in <module> from acme import client as acme_client File "/usr/lib/python2.7/site-packages/acme/client.py", line 37, in <module> requests.packages.urllib3.contrib.pyopenssl.inject_into_urllib3() # type: ignore File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 118, in inject_into_urllib3 _validate_dependencies_met() File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 160, in _validate_dependen |