I've been trying to install Jython and not having much luck.
The symptom is that I get a fail when installing:
File "/home/aph/jython2.7.0/Lib/pwd.py", line 60, in getpwuid
File "/home/aph/jython2.7.0/Lib/pwd.py", line 36, in __new__
pwd = (newStringOrUnicode(pwd.loginName), newStringOrUnicode(pwd.password), int(pwd.UID),
NotImplementedError: passwd.pw_passwd unimplemented
I think I've tracked my problem down to an obsolete jffi which doesn't
support AArch64. Do I need to do anything more than simply copy
jffi-i386-Linux.jar into extlibs? is that a reasonable guess at the
BTW, I am the lead of the AArch64 OpenJDK port. If you want me
to test on AArch64, I can do that.
Andrew, thanks for checking this out!
Adding jffi-aarch64-Linux.jar sounds reasonable to me.
You will have to edit build.xml somewhere right after line 592
appropriately. Maybe there are more spots to adjust, I cannot
tell right now. I suggest to try adding the jar and editing
build.xml; if it doesn't work, I'd recommend to file an issue
at bugs.jython.org, so we can keep track and discuss further
> Gesendet: Donnerstag, 30. März 2017 um 15:13 Uhr
> Von: "Andrew Haley" <[hidden email]>
> An: [hidden email] > Betreff: Re: [Jython-dev] AArch64 support
> On 30/03/17 13:31, Andrew Haley wrote:
> > Do I need to do anything more than simply copy
> > jffi-i386-Linux.jar into extlibs?
> Err, jffi-aarch64-Linux.jar :-)
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________
> Jython-dev mailing list
> [hidden email] > https://lists.sourceforge.net/lists/listinfo/jython-dev >
On 30/03/17 15:33, Stefan Richthofer wrote:
> Andrew, thanks for checking this out!
> Adding jffi-aarch64-Linux.jar sounds reasonable to me.
> You will have to edit build.xml somewhere right after line 592
> appropriately. Maybe there are more spots to adjust, I cannot
> tell right now. I suggest to try adding the jar and editing
> build.xml; if it doesn't work, I'd recommend to file an issue
> at bugs.jython.org, so we can keep track and discuss further
> steps there.
That seems to have mostly fixed things, but Mercurial doesn't work:
having said that, I don't know if Mercurial should work with jython
and jdk8. I can't think of any reason why not, but
I ran the tests, and all is mostly cool up to here:
[mkdir] Created dir: /home/aph/jython/tests/modjy/build
[echo] Running tests against JDK 1.5, Servlet j2ee1.3
[javac] /home/aph/jython/tests/modjy/build.xml:59: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 13 source files to /home/aph/jython/tests/modjy/build
[java] Time: 108.483
[java] There were 10 errors:
[java] 1) testHelloWorld(com.xhaus.modjy.ModjyTestBase)java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
I guess this means that the testsuite wants jaxp to be installed
somewhere. But I have no idea where.