Найти - Пользователи
Полная версия: Питонья ошибка при использовании Let's Encrypt
Начало » Python для новичков » Питонья ошибка при использовании Let's Encrypt
1
Papazol
Всем привет,

Помогите разобраться пожалуйста.

Пытаюсь генерировать SSL-сертификат Let's Encrypt на Ubuntu 17.04

При попытке:
root@v29236:~# certbot register –email postmaster@xxxxxxxxxxxxxxxxxxx.ru
почему-то вылетает ошибка Питона
= = = = = = = = = = = = = = = = = =
Traceback (most recent call last):
File “/usr/bin/certbot”, line 6, in <module>
from pkg_resources import load_entry_point
File “/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py”, line 3036, in <module>
@_call_aside
File “/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py”, line 3020, in _call_aside
f(*args, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py”, line 3049, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File “/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py”, line 654, in _build_master
ws.require(__requires__)
File “/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py”, line 968, in require
needed = self.resolve(parse_requirements(requirements))
File “/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py”, line 854, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The ‘certbot==0.14.1’ distribution was not found and is required by the application
= = = = = = = = = = = = = = = = = =

Что это может быть?
Криво сконфигурирован Питон?
Питону чего-то не хватает?

= = = = = = = = = = = = = = = = = =
Мои параметры:
= = = = = = = = = = = = = = = = = =
root@v29236:~# which python
/usr/bin/python

root@v29236:~# ls -alF /usr/bin/pyt*
lrwxrwxrwx 1 root root 7 May 20 19:39 /usr/bin/python -> python3*
lrwxrwxrwx 1 root root 9 Jan 20 13:03 /usr/bin/python3 -> python3.5*

PYTHONPATH=/usr/lib/python3.5


root@v29236:~# python
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import sys
>>> sys.path

>>>

4kpt_V
pkg_resources.DistributionNotFound: The ‘certbot==0.14.1’ distribution was not found and is required by the application
Papazol
4kpt_V
pkg_resources.DistributionNotFound: The ‘certbot==0.14.1’ distribution was not found and is required by the application

Да, я это вижу…
Но certbot устанавливался по инструкциям именно для моей убунты с официального сайта.

Я не думаю, что косяк в их инсталляхе и склонен считать, что кривизна где-то у меня.
Rodegast
 pip install certbot -U
Papazol
Rodegast
pip install certbot -U

Спасибо, но не помогло.
Копаюсь дальше…

building ‘_openssl’ extension
creating build/temp.linux-x86_64-3.5/build
creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-7CCmgg/python3.5-3.5.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/_openssl.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/_openssl.o
build/temp.linux-x86_64-3.5/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory
# include <pyconfig.h>
^
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

—————————————-
Command “/usr/bin/python -u -c ”import setuptools, tokenize;__file__='/tmp/pip-build-yuz6v5ii/cryptography/setup.py';f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace('\r\n', ‘\n’);f.close();exec(compile(code, __file__, ‘exec’))“ install –record /tmp/pip-_92j3ple-record/install-record.txt –single-version-externally-managed –compile” failed with error code 1 in /tmp/pip-build-yuz6v5ii/cryptography/
PooH
Поставь -dev пакеты для питона, и для libssl тоже
 apt install python3-dev libssl-dev
а потом снова попробуй поставить пакет через pip
Papazol
PooH
Поставь -dev пакеты для питона, и для libssl тоже

Спасибо - проблема решена.
Выковыривал багу за багой и они наконец закончились.

В том числе и дев-пакеты пришлось ставить.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB