Can't use pip with newest version of IronPython (2.7.6.3)
IronPython 2.7.6.3 fails to connect to pypi.python.org. Using:
ipy.exe -X:Frames -m pip install <package> throws:
WindowsError: [Errno 22] The client and server cannot communicate, because they do not possess a common algorithm
I have .NET Framework 4.5 as well as TLS 1.0, TLS 1.1 and TLS 1.2 versions installed on
this machine. IronPython 2.7.3 had no problems with using pip before.
I see several related issues with status closed mentioning similar problem: #1221 #1241
Here is the full pip error log: pip.log.txt
@rassilon Did I mess up your fixes when I merged the 2.7.12 stdlib?
@slide, Hrm. Ok, the failure isn't due to the 2.7.12 stdlib merge, it appears that is probably due to not having SslContext and urllib3's ssl_.py's resolve_ssl_version which gives a useless answer for IronPython.
Well some of those things are because of the upgrade of the stdlib. In the previous stdlib, those things weren't needed.
@slide, I think this immediate problem would go away if we made a SslContext stub that was good enough for pip, but that might cause problems in other Python packages. Anything else would probably require a IronPython specific urllib3 patch that would need to be determined.
Debugging it would probably just cause the exact problem to be fairly obvious I would imagine.
I've been debugging it. I created a SslContext stub, but then there are problems importing stuff from the bundled pip whl file. I've fixed a couple of import issues, but still heading down the rabbit hole.