Jython does not run under 18.04

Bug #1771476 reported by Patrick Palczewski on 2018-05-16
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
jython (Ubuntu)
Undecided
Unassigned

Bug Description

Jython 2.7.1 worked correctly under 17.10. After upgrading to 18.04, now Kython won't run, citing a ByteBuffer error.

Output:

patrick@patrick-satellite-l675d:~$ jython
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
 at jline.internal.InputStreamReader.<init>(InputStreamReader.java:104)
 at jline.console.ConsoleReader.setInput(ConsoleReader.java:330)
 at jline.console.ConsoleReader.<init>(ConsoleReader.java:248)
 at org.python.util.JLineConsole.install(JLineConsole.java:107)
 at org.python.core.Py.installConsole(Py.java:1744)
 at org.python.core.PySystemState.initConsole(PySystemState.java:1258)
 at org.python.core.PySystemState.doInitialize(PySystemState.java:1109)
 at org.python.core.PySystemState.initialize(PySystemState.java:1023)
 at org.python.core.PySystemState.initialize(PySystemState.java:979)
 at org.python.core.PySystemState.initialize(PySystemState.java:974)
 at org.python.util.jython.run(jython.java:263)
 at org.python.util.jython.main(jython.java:142)

My system is using OpenJDK 1.8.0_171, which I need as I work with Jython and it is not compatible with Java9 yet.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: jython 2.7.1+repack-3
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
Date: Tue May 15 19:07:34 2018
InstallationDate: Installed on 2018-01-28 (107 days ago)
InstallationMedia: Ubuntu 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitecture: all
SourcePackage: jython
UpgradeStatus: Upgraded to bionic on 2018-05-10 (5 days ago)

Patrick Palczewski (psykiatris) wrote :
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in jython (Ubuntu):
status: New → Confirmed
plana Pearson (planapp) wrote :

even i did experience same

plana@plana-R752BP:~$ jython
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
 at jline.internal.InputStreamReader.<init>(InputStreamReader.java:104)
 at jline.console.ConsoleReader.setInput(ConsoleReader.java:330)
 at jline.console.ConsoleReader.<init>(ConsoleReader.java:248)
 at org.python.util.JLineConsole.install(JLineConsole.java:107)
 at org.python.core.Py.installConsole(Py.java:1744)
 at org.python.core.PySystemState.initConsole(PySystemState.java:1258)
 at org.python.core.PySystemState.doInitialize(PySystemState.java:1109)
 at org.python.core.PySystemState.initialize(PySystemState.java:1023)
 at org.python.core.PySystemState.initialize(PySystemState.java:979)
 at org.python.core.PySystemState.initialize(PySystemState.java:974)
 at org.python.util.jython.run(jython.java:263)
 at org.python.util.jython.main(jython.java:142)

varun maitreya (varun-maitreya) wrote :

Hello,

I did replicate same issue with 2.7.1 in Ubuntu 18.04.

Temporary solution for the issue (using an older version of jython):

I have tried installing Jython 2.7.0 with installer and it works like charm. Issue may be compatibility issue with Jython 2.7.1 and ubuntu 18.04. Until bug gets fixed use older version of Jython. :)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers