Advanced search

Message boards : Graphics cards (GPUs) : Python app on Windows failing with SSL error

Author Message
jjch
Send message
Joined: 10 Nov 13
Posts: 101
Credit: 15,694,370,517
RAC: 3,382,072
Level
Trp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 60272 - Posted: 4 Apr 2023 | 4:36:34 UTC

Anyone notice the Python app failing on Windows hosts with a SSL error?

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1131)'))': /simple/pytorchrl/ etc....

This server was previously running the Python jobs ok so I'm wondering if something has changed that would cause this problem. My other Windows hosts seem to work other than the usual normal job failures.

Here are a couple of example Stderr outputs
https://www.gpugrid.net/result.php?resultid=33405143
https://www.gpugrid.net/result.php?resultid=33402668

Any input on what could be causing this would be appreciated. Also, FYI I tried to install the new NVIDIA driver version 474.30 but there was a problem with it installing properly. I had to go back to version 474.11 which is working for other projects.

jjch
Send message
Joined: 10 Nov 13
Posts: 101
Credit: 15,694,370,517
RAC: 3,382,072
Level
Trp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 60334 - Posted: 17 Apr 2023 | 1:54:35 UTC

I have looked into this a bit and from what I found "pip" uses HTTP to communicate and it can't connect since HTTP seems to be blocked from this network.

I already have a proxy server added in BOINC but it's HTTPS only. It's been added in the Internet Options>LAN settings and that should allow both HTTP and HTTPS.

I have tried setting system environment variables for both the HTTP and HTTPS proxy but I'm not finding a way to get it to work.

I think the python executable is self contained and I don't think it uses any of the settings I have in place.

Unless someone knows a bit more than I do about python using pip installs in GPUgrid, I'm stuck for running Python tasks from this particular server.

[CSF] Aleksey Belkov
Send message
Joined: 26 Dec 13
Posts: 86
Credit: 1,280,951,766
RAC: 346,681
Level
Met
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 60339 - Posted: 17 Apr 2023 | 21:17:47 UTC - in response to Message 60334.


I have tried setting system environment variables for both the HTTP and HTTPS proxy but I'm not finding a way to get it to work.

If this comment right, than pip need pip_ prefix for proxy variable.
Have you tried that?

jjch
Send message
Joined: 10 Nov 13
Posts: 101
Credit: 15,694,370,517
RAC: 3,382,072
Level
Trp
Scientific publications
watwatwatwatwatwatwatwatwatwatwatwatwatwatwat
Message 60343 - Posted: 21 Apr 2023 | 3:31:27 UTC - in response to Message 60339.

I have tried a few more ways to get the variables recognized by GPUgrid. I really don't think the Python app is reading anything that is set in the system environment variables.

I would guess it is self contained in it's own environment so any changes would have to be made in the program.

Post to thread

Message boards : Graphics cards (GPUs) : Python app on Windows failing with SSL error

//