Jython错误:[错误]无法构建终端;无法创建终端。退回不受支持

时间:2019-03-09 12:45:06

标签: java python macos jython macos-mojave

我写了一个Jython程序,效果很好
之后(我不知道发生了什么),我运行了代码,jython给出了以下输出:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/usr/local/Cellar/jython/2.7.1/libexec/jython.jar) to method java.io.Console.encoding()
WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[ERROR] Failed to construct terminal; falling back to unsupported
java.lang.NumberFormatException: For input string: "0x100"
    at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.base/java.lang.Integer.parseInt(Integer.java:652)
    at java.base/java.lang.Integer.valueOf(Integer.java:983)
    at org.python.jline.internal.InfoCmp.parseInfoCmp(InfoCmp.java:59)
    at org.python.jline.UnixTerminal.parseInfoCmp(UnixTerminal.java:242)
    at org.python.jline.UnixTerminal.<init>(UnixTerminal.java:65)
    at org.python.jline.UnixTerminal.<init>(UnixTerminal.java:50)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
    at java.base/java.lang.Class.newInstance(Class.java:584)
    at org.python.jline.TerminalFactory.getFlavor(TerminalFactory.java:211)
    at org.python.jline.TerminalFactory.create(TerminalFactory.java:102)
    at org.python.jline.TerminalFactory.get(TerminalFactory.java:186)
    at org.python.jline.TerminalFactory.get(TerminalFactory.java:192)
    at org.python.jline.console.ConsoleReader.<init>(ConsoleReader.java:243)
    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:1269)
    at org.python.core.PySystemState.doInitialize(PySystemState.java:1119)
    at org.python.core.PySystemState.initialize(PySystemState.java:1033)
    at org.python.core.PySystemState.initialize(PySystemState.java:989)
    at org.python.core.PySystemState.initialize(PySystemState.java:984)
    at org.python.util.jython.run(jython.java:263)
    at org.python.util.jython.main(jython.java:142)

它仍然给我这个输出,什么也没发生。我试图重新安装jython,但它仍然给我错误。我尝试运行其他jython程序,但仍然出现错误。

谢谢

我有一个MacOs X Mojave

0 个答案:

没有答案