New submission from Ajaya <[email protected]>:
We have built python3.7.5 and python3.8.1 source code in windows 10 machine. I
have created an embedded interptreter where i am trying to "import ssl" but it
is failing with error "Journal execution results for
D:\workdir\PR\9616145\9616145\journal.py...
Syntax errors:
Line 98: Traceback (most recent call last):
File "D:\workdir\PR\9616145\9616145\journal.py", line 1, in <module>
import ssl
File "<frozen zipimport>", line 259, in load_module
File
"D:\workdir\PR\PRUnits\PythonIssuefix381\wntx64\kits\nxbin\python\Python38.zip\ssl.py",
line 98, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: DLL load failed while importing _ssl: The specified module could
not be found."
This error was coming from python 3.7.4 and it was working fine till python
3.7.3.
There is also one work around if i replaced _ssl.pyd with python3.7.3 _ssl.pyd
it is working fine. I also found python 3.7.3 is using openssl-1.1.1c where as
python3.7.5 and python3.8.1 is using openssl- 1.1.1d.
I have also checked in using python 3.7.5 installing and import ssl is
working fine. I have also checked that _ssl.pyd in installer and _ssl.pyd is
created by manually built size is different.
I am not getting the exact root cause what has happened. Could you please me i
have already stucked and not able to work.
----------
components: Windows
files: journal.py
messages: 360055
nosy: Ajaya, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Getting error while importing ssl " import _ssl # if we
can't import it, let the error propagate ImportError: DLL load failed while
importing _ssl: The specified module could not be found."
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file48846/journal.py
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39344>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com