ssl module in Python is not available - Bluehost Server
/* I'm trying to load python and selenium on a Bluehost server.
I use SSH via PuTTY.Python 3.9.2 - I was able to load this
Pip 7.1.0 - this was already installed Pip3 20.2.3 - I was able to load thisWhen I type */ pip install selenium
Error – /usr/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl .py:90: InsecurePlatformWarning:pip3 install selenium
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
/* I have attempted to install OpenSSL to correct the SSL warnings. The install fails.
I tried some of the solutions here at stack overflow:
How to fix ssl module in Python is not available in CentOsI then attempted to install OpenSSL to correct the SSL warnings, using: https://help.dreamhost.com/hc/en-us/articles/360001435926-Installing-OpenSSL-locally-under-your-username
I created a directory under my username labeled -home1/lsdmpark/openssl
On PuTTY SSH I ran
*/wget https://www.openssl.org/source/openssl-3.1.0-alpha1.tar.gz
/*I compared the checksums and they were fine */
tar zxvf openssl-3.1.0-alpha1.tar.gz`
cd openssl-3.1.0-alpha1`
./config --prefix=/home1/lsdmpark/openssl --openssldir=/home1/lsdmpark/openssl`
/*- It stated that OpenSSL has been successfully configured */
make
make test
/* My openssl directory remains empty. Shouldn’t it be populated with files?
The install fails the make test. */lsdmpark@lsdm-parkcity.com [~/openssl-3.1.0-alpha1]# make test
make depend && make _tests
make[1]: Entering directory`/home1/lsdmpark/openssl-3.1.0-alpha1'
make\[1\]: Leaving directory `/home1/lsdmpark/openssl-3.1.0-alpha1'
make[1]: Entering directory /home1/lsdmpark/openssl-3. 1.0-alpha1'
( SRCTOP=. \
BLDTOP=. \
PERL="/usr/bin/perl" \
FIPSKEY="f4556650ac31d35461610bac4ed81b1a181b2d8a43ea2854cbae22ca74560813" \
EXE_EXT= \
/usr/bin/perl ./test/run_tests.pl )
00-prep_fipsmodule_cnf.t ..
Test::More version 0.96 required--this is only version 0.92 at /home1/lsdmpark/openssl-3.1.0- alpha1/util/perl/OpenSSL/Test.pm line 13.
BEGIN failed--compilation aborted at /home1/lsdmpark/openssl-3.1.0- alpha1/util/perl/OpenSSL/Test.pm line 13.
Compilation failed in require at test/recipes/00-prep_fipsmodule_cnf.t line 12.
00-prep_fipsmodule_cnf.t .. Dubious, test returned 255 (wstat 65280, 0xff00)ine 12.
No subtests run
Test Summary Report
-------------------
00-prep_fipsmodule_cnf.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=1, Tests=0, 0 wallclock secs ( 0.00 usr 0.00 sys + 0.01 cusr 0.00 csys = 0.01 CPU)
Result: FAIL
make\[1\]: \*\*\* \[run_tests\] Error 1
make\[1\]: Leaving directory `/home1/lsdmpark/openssl-3.1.0-alpha1' ma开发者_JAVA百科ke: *** [tests] Error 2
perl configdata.pm –dump
Command line (with current working directory = .):
/usr/bin/perl ./Configure --prefix=/home1/lsdmpark/openssl --openssldir=/home1/lsdmpark/openssl
Perl information:
/usr/bin/perl
5.10.1 for x86_64-linux-thread-multi
Enabled features:
afalgeng
aria
asm
async
autoalginit
autoerrinit
autoload-config
bf
blake2
bulk
cached-fetch
camellia
capieng
cast
chacha
cmac
cmp
cms
comp
ct
deprecated
des
dgram
dh
dsa
dso
dtls
dynamic-engine
ec
ec2m
ecdh
ecdsa
engine
err
filenames
gost
idea
legacy
loadereng
makedepend
md4
mdc2
module
multiblock
nextprotoneg
ocb
ocsp
padlockeng
pic
pinshared
poly1305
posix-io
psk
rc2
rc4
rdrand
rfc3779
rmd160
scrypt
secure-memory
seed
shared
siphash
siv
sm2
sm3
sm4
sock
srp
srtp
sse2
ssl
ssl-trace
static-engine
stdio
tests
threads
tls
ts
ui-console
whirlpool
tls1
tls1-method
tls1_1
tls1_1-method
tls1_2
tls1_2-method
tls1_3
dtls1
dtls1-method
dtls1_2
dtls1_2-method
Disabled features:
acvp-tests [cascade] OPENSSL_NO_ACVP_TESTS
asan [default] OPENSSL_NO_ASAN
buildtest-c++ [default]
crypto-mdebug [default] OPENSSL_NO_CRYPTO_MDEBUG
devcryptoeng [default] OPENSSL_NO_DEVCRYPTOENG
ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128
egd [default] OPENSSL_NO_EGD
external-tests [default] OPENSSL_NO_EXTERNAL_TESTS
fips [default]
fips-securitychecks [cascade] OPENSSL_NO_FIPS_SECURITYCHECKS
fuzz-afl [default] OPENSSL_NO_FUZZ_AFL
fuzz-libfuzzer [default] OPENSSL_NO_FUZZ_LIBFUZZER
ktls [default] OPENSSL_NO_KTLS
md2 [default] OPENSSL_NO_MD2 (skip crypto/md2)
msan [default] OPENSSL_NO_MSAN
rc5 [default] OPENSSL_NO_RC5 (skip crypto/rc5)
sctp [default] OPENSSL_NO_SCTP
trace [default] OPENSSL_NO_TRACE
ubsan [default] OPENSSL_NO_UBSAN
unit-test [default] OPENSSL_NO_UNIT_TEST
uplink [no uplink_arch] OPENSSL_NO_UPLINK
weak-ssl-ciphers [default] OPENSSL_NO_WEAK_SSL_CIPHERS
zlib [default]
zlib-dynamic [default]
ssl3 [default] OPENSSL_NO_SSL3
ssl3-method [default] OPENSSL_NO_SSL3_METHOD
Config target attributes:
AR => "ar",
ARFLAGS => "qc",
CC => "gcc",
CFLAGS => "-Wall -O3",
CXX => "g++",
CXXFLAGS => "-Wall -O3",
HASHBANGPERL => "/usr/bin/env perl",
RANLIB => "ranlib",
RC => "windres",
asm_arch => "x86_64",
bn_ops => "SIXTY_FOUR_BIT_LONG",
build_file => "Makefile",
build_scheme => [ "unified", "unix" ],
cflags => "-pthread -m64",
cppflags => "",
cxxflags => "-std=c++11 -pthread -m64",
defines => [ "OPENSSL_BUILDING_OPENSSL" ],
disable => [ ],
dso_ldflags => "-Wl,-z,defs",
dso_scheme => "dlfcn",
enable => [ "afalgeng" ],
ex_libs => "-ldl -pthread",
includes => [ ],
lflags => "",
lib_cflags => "",
lib_cppflags => "-DOPENSSL_USE_NODELETE -DL_ENDIAN",
lib_defines => [ ],
module_cflags => "-fPIC",
module_cxxflags => undef,
module_ldflags => "-Wl,-znodelete -shared -Wl,-Bsymbolic",
multilib => "64",
perl_platform => "Unix",
perlasm_scheme => "elf",
shared_cflag => "-fPIC",
shared_defflag => "-Wl,--version-script=",
shared_defines => [ ],
shared_ldflag => "-Wl,-znodelete -shared -Wl,-Bsymbolic",
shared_rcflag => "",
shared_sonameflag => "-Wl,-soname=",
shared_target => "linux-shared",
thread_defines => [ ],
thread_scheme => "pthreads",
unistd => "<unistd.h>",
Recorded environment:
AR =
ARFLAGS =
AS =
ASFLAGS =
BUILDFILE =
CC =
CFLAGS =
CPP =
CPPDEFINES =
CPPFLAGS =
CPPINCLUDES =
CROSS_COMPILE =
CXX =
CXXFLAGS =
HASHBANGPERL =
LD =
LDFLAGS =
LDLIBS =
MT =
MTFLAGS =
OPENSSL_LOCAL_CONFIG_DIR =
PERL =
RANLIB =
RC =
RCFLAGS =
RM =
WINDRES =
__CNF_CFLAGS =
__CNF_CPPDEFINES =
__CNF_CPPFLAGS =
__CNF_CPPINCLUDES =
__CNF_CXXFLAGS =
__CNF_LDFLAGS =
__CNF_LDLIBS =
Makevars:
AR = ar
ARFLAGS = qc
CC = gcc
CFLAGS = -Wall -O3
CPPDEFINES =
CPPFLAGS =
CPPINCLUDES =
CXX = g++
CXXFLAGS = -Wall -O3
HASHBANGPERL = /usr/bin/env perl
LDFLAGS =
LDLIBS =
PERL = /usr/bin/perl
RANLIB = ranlib
RC = windres
RCFLAGS =
NOTE: These variables only represent the configuration view. The build file
template may have processed these variables further, please have a look at the
build file for more exact data:
Makefile
build file:
Makefile
build file templates:
Configurations/common0.tmpl
Configurations/unix-Makefile.tmpl
精彩评论