[Python-Dev] Re: compiled python3.10 is unable to find _ssl

2021年10月18日 10:57:15 -0700

Your configure script did pick up openssl as the support version was not
found.
What is your operating system? Make sure you have supported version of
ssl. Python requires openssl 1.1.1 or higher.
On Mac, I had to use brew to install it and --with-openssl flag.
On some linux machines, I have had to download openssl, compile it, and
point my the configure script to (location I compiled openssl).
CFLAGS="-I$HOME/openssl/include" LDFLAGS="-L$HOME/openssl/lib"
Thank you,
Senthil
On Mon, Oct 18, 2021 at 08:16:01PM +0530, Sandeep Gupta wrote:
> I am having compilation issues again with python3.10 with ssl .
> 
> The ./configure was invoked with ssl options and ssl modules seems to
> be build successfully.
> 
> """
> The following modules found by detect_modules() in setup.py, have been
> built by the Makefile instead, as configured by the Setup files:
> _abc _hashlib _ssl
> pwd time
> """
> 
> However, when I do import ssl from python, I get the error:
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/home/shared/Builds/Python-3.10.0/lib/python3.10/ssl.py", line
> 98, in <module>
> import _ssl # if we can't import it, let the error propagate
> ModuleNotFoundError: No module named '_ssl'
> 
> I can't find _ssl.so in build or install directory.
> 
> Thanks
> -S
> _______________________________________________
> Python-Dev mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at 
> https://mail.python.org/archives/list/[email protected]/message/IIFABHN7DOTCXMRQ72SLJSU4VDWRM2HB/
> Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/JN6FB7675WTRB23HXD5CGBF4NUCZKSOD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to