Starting the jython interpreter fails since bookworm (where
libjline2-java moved from libjansi-java to libjansi1-java):
Jython 2.7.3-DEV (-dirty:uncontrolled, Jan 7 2023, 16:12:55)
[OpenJDK 64-Bit Server VM (Debian)] on java21.0.7-ea
Type "help", "copyright", "credits" or "license" for more information.
at jline.internal.Ansi.stripAnsi(Ansi.java:28)
at jline.console.ConsoleReader.setPrompt(ConsoleReader.java:499)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2425)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2378)
at jline.console.ConsoleReader.readLine(ConsoleReader.java:2366)
at org.python.util.JLineConsole.readerReadLine(JLineConsole.java:210)
at org.python.util.JLineConsole.access$100(JLineConsole.java:28)
at org.python.util.JLineConsole$Stream.getLine(JLineConsole.java:164)
at org.python.util.ConsoleInputStream.fillBuffer(ConsoleInputStream.java:101)
at org.python.util.ConsoleInputStream.read(ConsoleInputStream.java:180)
at java.base/java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:316)
at org.python.core.io.StreamIO.readinto(StreamIO.java:123)
at org.python.core.io.BufferedReader.peek(BufferedReader.java:102)
at org.python.core.io.BufferedReader.read1(BufferedReader.java:116)
at org.python.core.io.TextIOBase.readChunk(TextIOBase.java:255)
at org.python.core.io.BinaryIOWrapper.readline(BinaryIOWrapper.java:101)
at org.python.core.io.TextIOWrapper.readline(TextIOWrapper.java:178)
at org.python.core.PyFile.file_readline(PyFile.java:364)
at org.python.core.PyFile.readline(PyFile.java:372)
at org.python.core.__builtin__.readline(__builtin__.java:984)
at org.python.core.__builtin__.raw_input(__builtin__.java:1008)
at org.python.util.InteractiveConsole.raw_input(InteractiveConsole.java:209)
at org.python.util.InteractiveConsole._interact(InteractiveConsole.java:150)
at org.python.util.InteractiveConsole.interact(InteractiveConsole.java:127)
at org.python.util.jython.runStream(jython.java:446)
at org.python.util.jython.main(jython.java:700)
Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.AnsiOutputStream
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 26 more
java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiOutputStream
It is quite surprising that this has not yet been caught. Let's fix
trixie's jython or get rid of it.
Hi, On Thu, 20 Mar 2025 17:46:30 +0100 Bastian Germann <bage@debian.org> wrote: > Package: jython > Version: 2.7.3+repack1-1 > Severity: grave > Justification: renders package unusable > > Starting the jython interpreter fails since bookworm (where > libjline2-java moved from libjansi-java to libjansi1-java): > > Jython 2.7.3-DEV (-dirty:uncontrolled, Jan 7 2023, 16:12:55) > [OpenJDK 64-Bit Server VM (Debian)] on java21.0.7-ea > Type "help", "copyright", "credits" or "license" for more information. > >>> java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiOutputStream > at jline.internal.Ansi.stripAnsi(Ansi.java:28) > at jline.console.ConsoleReader.setPrompt(ConsoleReader.java:499) > at jline.console.ConsoleReader.readLine(ConsoleReader.java:2425) > at jline.console.ConsoleReader.readLine(ConsoleReader.java:2378) > at jline.console.ConsoleReader.readLine(ConsoleReader.java:2366) > at org.python.util.JLineConsole.readerReadLine(JLineConsole.java:210) > at org.python.util.JLineConsole.access$100(JLineConsole.java:28) > at org.python.util.JLineConsole$Stream.getLine(JLineConsole.java:164) > at org.python.util.ConsoleInputStream.fillBuffer(ConsoleInputStream.java:101) > at org.python.util.ConsoleInputStream.read(ConsoleInputStream.java:180) > at java.base/java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:316) > at org.python.core.io.StreamIO.readinto(StreamIO.java:123) > at org.python.core.io.BufferedReader.peek(BufferedReader.java:102) > at org.python.core.io.BufferedReader.read1(BufferedReader.java:116) > at org.python.core.io.TextIOBase.readChunk(TextIOBase.java:255) > at org.python.core.io.BinaryIOWrapper.readline(BinaryIOWrapper.java:101) > at org.python.core.io.TextIOWrapper.readline(TextIOWrapper.java:178) > at org.python.core.PyFile.file_readline(PyFile.java:364) > at org.python.core.PyFile.readline(PyFile.java:372) > at org.python.core.__builtin__.readline(__builtin__.java:984) > at org.python.core.__builtin__.raw_input(__builtin__.java:1008) > at org.python.util.InteractiveConsole.raw_input(InteractiveConsole.java:209) > at org.python.util.InteractiveConsole._interact(InteractiveConsole.java:150) > at org.python.util.InteractiveConsole.interact(InteractiveConsole.java:127) > at org.python.util.jython.runStream(jython.java:446) > at org.python.util.jython.main(jython.java:700) > Caused by: java.lang.ClassNotFoundException: org.fusesource.jansi.AnsiOutputStream > at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) > at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526) > ... 26 more > java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/fusesource/jansi/AnsiOutputStream > > It is quite surprising that this has not yet been caught. Let's fix > trixie's jython or get rid of it. > Indeed, that's surprising. The bug is rather in jline2, a common classpath issue. I am preparing a fix. Cheers,
We believe that the bug you reported is fixed in the latest version of jline2, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1100935@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Pierre Gruet <pgt@debian.org> (supplier of updated jline2 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Mon, 07 Apr 2025 21:00:16 +0200 Source: jline2 Architecture: source Version: 2.14.6-6 Distribution: unstable Urgency: medium Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> Changed-By: Pierre Gruet <pgt@debian.org> Closes: 1100935 Changes: jline2 (2.14.6-6) unstable; urgency=medium . * Team upload. * Fixing manifest file: jansi -> jansi1 (Closes: #1100935) * Raising Standards version to 4.7.2 (no change) * Getting rid of unnecessary versioned Build-Depends Checksums-Sha1: 1c0167429a9ee3e8c55df7851a0ac80806e20d15 2013 jline2_2.14.6-6.dsc 3d0404a014180ff9e2b14345531e057527468146 5056 jline2_2.14.6-6.debian.tar.xz 77c494430013e089fc381aaa1a1874f18b4e2302 16143 jline2_2.14.6-6_amd64.buildinfo Checksums-Sha256: d2cf3dd9cfafe93361c476aa13953899cf675e33c51c77f386be2a91f6f42124 2013 jline2_2.14.6-6.dsc 5da2ade6c687c310340240db4158a6a9ec2ed6abf8a3f0fdaf877153b3a10de1 5056 jline2_2.14.6-6.debian.tar.xz 6ab98eca7acc33412e42ed3ad92c5f4668aa6ca379f24bc8b9d4a7449783f77d 16143 jline2_2.14.6-6_amd64.buildinfo Files: b6b0dd7bb3cadc77b50edba2af5046a5 2013 java optional jline2_2.14.6-6.dsc 43812fc3716b5a656435060b0f55a5d5 5056 java optional jline2_2.14.6-6.debian.tar.xz 21dbb88d353cb5f31aa2656896e0a7bd 16143 java optional jline2_2.14.6-6_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmf0Iz4ACgkQYAMWptwn dHZd2g//Yk68NB7TqflHeF9Pto8pfCH0DqclnQExP91Uhvqnn9badhew81fkABK/ ARSyIRqAf7u5gIg5KDpxh4DS77qwATf2p4PHQviIJ/c1fRplDieTG2v6QACPHtPz 4pR91IooAR1qrc7H8CKbGYoCgytBAv6bt+em/dkO/1P0oO9N42yv3UlF9Kso0fEp XXmWNQCcIsPTeoCFu114nQqhDNje3TdsWyecq4Sfe01zi9lxO6OIV+I492+O1iKu e8cFxJWMx8DkTh+frd3uGAa7kS6enRWefTnpW2QQ97/DrZy+2KsDlJqQMBzhPs4C vV0lRLLHlWji8Od1ChmmZZcKK7iYem6wivzQdKX4IfV2cvybOe+cvrJWuApc03xi 2kjFhzV0FfDELD4Dfsty+m/MmTzB5UeijJR71V3lZBs0eBveIi7DGpIKoVGtGCuY HgxuBeFVRivk1+F9pfEdw4hWO1XNe0I0ANojvbr6qWl/QxckUwroOnA70J6Uj0XB rBPsVuBegjEhQC8NisUTVOYqqxLNlE5TUMBKfh4tkz+Y+0HTZ/7OlpW+i3ObihiQ NOrNTJeLaZU8UIUPjCW4HGafqBeid2Y26a4tyepmsA0qHM3oiRwkiJjGtoG/vOmD JcjDQCQk6wFzItuao1OScOMLVX+eg5PbfLNsgAy01K134xTukVc= =ppnG -----END PGP SIGNATURE-----