Import ssl

Hello everyone,

i am trying to import the ssl module and have the following error:

   Python\Lib\", line 667
    raise TypeError(f"{callback} is not callable.")
    SyntaxError: invalid syntax

So i tried to import only the dll by:

import _sll

This generated the following Error message:

Traceback (most recent call last):This text will be hidden
  File "Neue Komponente::PythonScript", line 8, in OnRun
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

I have already added the path in the control panel

Thanks for your help

Hello Chris
You can follow the steps from here:

Hello ozan,

Thanks for your help. I copied the whole dll folder and the sitepackages folder to the VisualComponents folder with no success.
VisualComponents still can’t find the _sll dll.

Hi @chris
SSL support has to included into the python interpreter build and is not included with VC python build, unfortunately. Unless you find a way to build the ssl module for VC python interpreter, then it’s not possible to use it.
In order to get SSL communication, go with .NET plugin or make an external applicaition (e.g. python process) as a middleware to which you can communicate from VC Python.