Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jython pip issues #44

Closed
norpol opened this issue Oct 25, 2020 · 1 comment
Closed

jython pip issues #44

norpol opened this issue Oct 25, 2020 · 1 comment

Comments

@norpol
Copy link

norpol commented Oct 25, 2020

Somehow pip is kind of crucial for Python in general, other Dockerhub jython Docker images do in-fact bundle pip. Somehow harisekhon/jython:latest does not contain pip though. Usually one would use ensurepip to retrieve a recent version of pip, though

$ jython -m ensurepip --upgrade
Ignoring ensurepip failure: pip 1.6 requires SSL/TLS

tracing down the jython code, this will message will show up if import ssl raises an exception. Trying to do so will result in missing module encodings.

$ jython
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) 
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.8.0_171
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/fwierzbicki/hg/jython/jython/dist/Lib/ssl.py", line 18, in <module>
  File "/Users/fwierzbicki/hg/jython/jython/dist/Lib/_socket.py", line 2, in <module>
ImportError: No module named encodings
@HariSekhon
Copy link
Owner

harisekhon/jython-dev solved this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants