Issue2736

classification
Title: ensurepip fails with: pip 9.0.1 requires SSL/TLS
Type: behaviour Severity: normal
Components: Installer Versions:
Milestone: Jython 2.7.2
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen, stuaxo
Priority: normal Keywords: easy

Created on 2019-01-19.23:19:27 by stuaxo, last changed 2019-11-03.10:15:37 by jeff.allen.

Messages
msg12328 (view) Author: stu (stuaxo) Date: 2019-01-19.23:19:27
On Ubuntu 18.10 64 bit, jython 2.7.1, I tried to install pip:

$ jython -m ensurepip
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/usr/share/java/jython-2.7.1.jar) to method java.io.Console.encoding()
WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Ignoring ensurepip failure: pip 9.0.1 requires SSL/TLS
msg12740 (view) Author: Jeff Allen (jeff.allen) Date: 2019-11-03.10:07:53
I tested this with 2.7.2b2 and can reproduce it.

It actually happens because attempting to import the ssl module fails, and this happens because there is no module called encodings. And it's right: Lib/encodings is not present in my Linux installation if I choose "minimal".

When I make a standard installation (interactively), pip and setuptools are installed for me, successfully. And encodings is present too.

This may be an attempt to save you disk footprint, but it seems misplaced given this consequence. The easy work-around is to make a standard installation.
History
Date User Action Args
2019-11-03 10:15:37jeff.allensetkeywords: + easy
2019-11-03 10:07:53jeff.allensettype: behaviour
nosy: + jeff.allen
messages: + msg12740
priority: normal
components: + Installer, - Library
milestone: Jython 2.7.2
resolution: accepted
2019-01-19 23:19:27stuaxocreate