main icon indicating copy to clipboard operation
main copied to clipboard

Can't use pip with newest version of IronPython (2.7.6.3)

Open dxtodorovic opened this issue 10 years ago • 6 comments

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

dxtodorovic avatar Aug 24 '16 15:08 dxtodorovic

@rassilon Did I mess up your fixes when I merged the 2.7.12 stdlib?

slide avatar Aug 24 '16 15:08 slide

@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.

rassilon avatar Sep 10 '16 16:09 rassilon

Well some of those things are because of the upgrade of the stdlib. In the previous stdlib, those things weren't needed.

slide avatar Sep 10 '16 17:09 slide

@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.

rassilon avatar Sep 10 '16 18:09 rassilon

Debugging it would probably just cause the exact problem to be fairly obvious I would imagine.

rassilon avatar Sep 10 '16 18:09 rassilon

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.

slide avatar Sep 10 '16 18:09 slide