Доброго времени! Нужно авторизоваться на сайте с логином паролем, сохранить сессию, чтобы выполнять дальнейшие действия по заполнению форм. Но pip3 не находит нужные версии pickle, cookielib, http, обновление pip3 и python3 не происходит.
Система AltLinux 7.0.5 SPT, python3.
# lsb_release -a
LSB Version: 4.0:core-3.0-ia32:core-3.0-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.0-ia32:cxx-3.0-noarch:cxx-4.0-ia32:cxx-4.0-noarch:desktop-3.0-ia32:desktop-3.0-noarch:desktop-4.0-ia32:desktop-4.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:languages-3.0-noarch:languages-4.0-noarch:printing-3.0-noarch:printing-4.0-noarch
Distributor ID: ALT
Description: ALT Linux 7.0.5 SPT (silo)
Release: 7.0.5
Codename: silo
# uname -a
Linux o14 4.4.143-std-def-alt0.M70C.1 #1 SMP Wed Aug 8 18:08:02 UTC 2018 i686 GNU/Linux
# python3 --version
Python 3.3.1
# pip3 install --upgrade pip
DEPRECATION: Python 3.3 supported has been deprecated and support for it will be dropped in the future. Please upgrade your Python.
Requirement already up-to-date: pip in /usr/lib/python3.3/site-packages (10.0.1)
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# pip3 install pickle
DEPRECATION: Python 3.3 supported has been deprecated and support for it will be dropped in the future. Please upgrade your Python.
Collecting pickle
Could not find a version that satisfies the requirement pickle (from versions: )
No matching distribution found for pickle
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Снесли pithon3.3 поставили с python.org последнюю: python-3.7.1 . Но без модуля ssl pip3 ничего не скачивает:
# pip3.7 install stdlib
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting stdlib
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/stdlib/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/stdlib/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/stdlib/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/stdlib/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/stdlib/
Could not fetch URL https://pypi.org/simple/stdlib/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/stdlib/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not find a version that satisfies the requirement stdlib (from versions: )
No matching distribution found for stdlib
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
В ответе сказано комплиировать с поддержкой ssl https://stackoverflow.com/questions/49094768/ssl-module-in-python-is-not-avai...
так и сделали. Отредактировали Setup но make жалуется на старую версию libssl:
# nano Python3.7.1/Modules/Setup
...
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
SSL=/usr/include/openssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
# ./configure
# make
...
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include -DUSE_SSL -I/usr/include/openssl/include -I/usr/include/openssl/include/openssl -c ./Modules/_ssl.c -o Modules/_ssl.o
./Modules/_ssl.c:74:6: error: #error "libssl is too old and does not support X509_VERIFY_PARAM_set1_host()"
./Modules/_ssl.c: In function ‘_ssl_configure_hostname’:
./Modules/_ssl.c:861:9: error: implicit declaration of function ‘SSL_get0_param’ [-Werror=implicit-function-declaration]
./Modules/_ssl.c:861:36: warning: initialization makes pointer from integer without a cast [enabled by default]
./Modules/_ssl.c:863:13: error: implicit declaration of function ‘X509_VERIFY_PARAM_set1_host’ [-Werror=implicit-function-declaration]
./Modules/_ssl.c:869:13: error: implicit declaration of function ‘X509_VERIFY_PARAM_set1_ip’ [-Werror=implicit-function-declaration]
./Modules/_ssl.c: In function ‘_ssl__SSLContext_impl’:
./Modules/_ssl.c:2988:23: error: ‘X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS’ undeclared (first use in this function)
./Modules/_ssl.c:2988:23: note: each undeclared identifier is reported only once for each function it appears in
./Modules/_ssl.c:3093:5: error: implicit declaration of function ‘SSL_CTX_get0_param’ [-Werror=implicit-function-declaration]
./Modules/_ssl.c:3093:12: warning: assignment makes pointer from integer without a cast [enabled by default]
./Modules/_ssl.c:3099:5: error: implicit declaration of function ‘X509_VERIFY_PARAM_set_hostflags’ [-Werror=implicit-function-declaration]
./Modules/_ssl.c: In function ‘get_verify_flags’:
./Modules/_ssl.c:3397:11: warning: assignment makes pointer from integer without a cast [enabled by default]
./Modules/_ssl.c: In function ‘set_verify_flags’:
./Modules/_ssl.c:3410:11: warning: assignment makes pointer from integer without a cast [enabled by default]
./Modules/_ssl.c: In function ‘set_host_flags’:
./Modules/_ssl.c:3573:11: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make: *** [Modules/_ssl.o] Ошибка 1
# apt-cache show libssl
Виртуальный пакет libssl предоставляется следующими пакетами:
libssl10 1.0.1u-alt0.M70C.1
libssl7 0.9.8zh-alt0.M70C.1
You should explicitly select one to show.
E: Package libssl is a virtual package with multiple providers.
подскажите, как можно обойти?