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

interested in alpine-jython #1

Open
AlJohri opened this issue Jun 9, 2016 · 5 comments
Open

interested in alpine-jython #1

AlJohri opened this issue Jun 9, 2016 · 5 comments

Comments

@AlJohri
Copy link

AlJohri commented Jun 9, 2016

Dockerfile using alpine:

FROM gliderlabs/alpine:3.4
RUN apk add --no-cache curl bash openjdk7-jre
ENV JYTHON_VERSION 2.7.0
RUN curl -Lo jython-installer-${JYTHON_VERSION}.jar\
 "http://search.maven.org/remotecontent?filepath=org/python/jython-installer/${JYTHON_VERSION}/jython-installer-${JYTHON_VERSION}.jar"\
 && java -jar jython-installer-${JYTHON_VERSION}.jar -s -t minimum -i mod -i ensurepip -d /usr/local/jython-${JYTHON_VERSION}\
 &&  rm -f jython-installer-${JYTHON_VERSION}.jar\
 && ln -s /usr/local/jython-${JYTHON_VERSION}/bin/* /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/jython"]
@AlJohri
Copy link
Author

AlJohri commented Jun 9, 2016

I run into this error message from the Dockerfile above. http://bugs.jython.org/issue2333

NotImplementedError: passwd.pw_passwd unimplemented

Jython still works as expected.

@AlJohri
Copy link
Author

AlJohri commented Jun 9, 2016

Full Traceback:

Traceback (most recent call last):
  File "/usr/local/jython-2.7.0/Lib/runpy.py", line 161, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/jython-2.7.0/Lib/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__main__.py", line 4, in <module>
    ensurepip._main()
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__init__.py", line 220, in _main
    bootstrap(
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__init__.py", line 123, in bootstrap
    _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/usr/local/jython-2.7.0/Lib/ensurepip/__init__.py", line 45, in _run_pip
    import pip
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/__init__.py", line 10, in <module>
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/util.py", line 17, in <module>
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 109, in <module>
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 71, in _get_build_prefix
  File "/tmp/tmp2azRqv/pip-1.6-py2.py3-none-any.whl/pip/locations.py", line 66, in __get_username
  File "/usr/local/jython-2.7.0/Lib/pwd.py", line 60, in getpwuid
    return struct_passwd(entry)
  File "/usr/local/jython-2.7.0/Lib/pwd.py", line 36, in __new__
    pwd = (newStringOrUnicode(pwd.loginName), newStringOrUnicode(pwd.password), int(pwd.UID),
NotImplementedError: passwd.pw_passwd unimplemented
 100 %
Congratulations! You successfully installed Jython 2.7.0 to directory /usr/local/jython-2.7.0.

@seansummers
Copy link
Owner

There is a bug with certain versions of jython and java (some info here http://python.6.x6.nabble.com/Jython-compatibility-with-Java8-td5061189.html ).

It looks like you forked this repo, made some fundamental changes in the base docker images? This problem is not related to any branch in this repo.

I will bring my current Docker stack up to date, and see if the error occurs. I will not troubleshoot gliderlabs/alpine.

@AlJohri
Copy link
Author

AlJohri commented Jun 11, 2016

@seansummers I was just dropping a note since I saw the comment in the README

If there's an interest for alpine-jython, I'll update tags for it.

@seansummers
Copy link
Owner

Yes, I've queued up the updates. Just not going to have gliderlabs/alpine in them.

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