SSL error in Nuke 10.5v5

I have install the shotgun_api-3.3.4 with Python 3.10 to Nuke 10.5v5
I tested the communication to ShotGrid in Python with no problems.
But I tried to test some simple scripts in Nuke, it fails with following errors.
Does anyone got the idea to fix this? Thanks.

from shotgun_api3 import Shotgun


sg = Shotgun(“”,“api_test”,“XXX”)

Result: Traceback (most recent call last):

File “”, line 1, in
File “D:/nuke/python\shotgun_api3\”, line 677, in init
File “D:/nuke/python\shotgun_api3\”, line 721, in server_caps
self._server_caps = ServerCapabilities(self.config.server,
File “D:/nuke/python\shotgun_api3\”, line 776, in info
return self._call_rpc(“info”, None, include_auth_params=False)
File “D:/nuke/python\shotgun_api3\”, line 3223, in _call_rpc
encoded_payload, req_headers)
File “D:/nuke/python\shotgun_api3\”, line 3363, in make_call
return self.http_request(verb, path, body, req_headers)
File “D:/nuke/python\shotgun_api3\”, line 3417, in http_request
resp, content = conn.request(url, method=verb, body=body, headers=headers)
File "D:/nuke/python\shotgun_api3\lib\httplib2\python2_init
.py", line 2133, in request
File "D:/nuke/python\shotgun_api3\lib\httplib2\python2_init
.py", line 1796, in request
conn, request_uri, method, body, headers
File "D:/nuke/python\shotgun_api3\lib\httplib2\python2_init
.py", line 1701, in conn_request
File "D:/nuke/python\shotgun_api3\lib\httplib2\python2_init
.py", line 1368, in connect,
File "D:/nuke/python\shotgun_api3\lib\httplib2\python2_init
.py", line 104, in _ssl_wrap_socket
File “C:\Program Files\Nuke10.5v5\lib\”, line 381, in wrap_socket
File “C:\Program Files\Nuke10.5v5\lib\”, line 143, in init
File “C:\Program Files\Nuke10.5v5\lib\”, line 305, in do_handshake
ssl.SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol


ShotGrid no longer supports TLS v1.1 and below due to security concerns.
Much of the internet itself has adopted TLS v1.2 as the new security standard.

Unfortunately Nuke up to version 10.5 ships with a Python version and specifically the ssl/tls packages with support for up to v1.1 of TLS.

This means that it can no longer communicate with ShotGrid (or many other Cloud services).

I do remember somebody was able to monkeypatch the Nuke Python library that enabled it to work but I’ve not been able to find a guide on that :frowning:

So to use SG you’ll have to at least be running Nuke 11, or setup a Proxy server that communicates with Nuke on tls v1.1 and to SG with tls v1.2.

I’m sad to here that.
Thanks for your help anyway.

Yes unfortunately the Foundry did not choose to create a patch to make this work.
The responsibility lies with them.

They will tell you to pay for an update the nuke to get it fixed.

Yes, unfortunately Nuke 10 family is no longer supported by the Foundry.