Message11727

Author jeff.allen
Recipients adamburke, brettcannon, jeff.allen, stefan.richthofer, zyasoft
Date 2018-02-28.23:21:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519860096.27.0.467229070634.issue2346@psf.upfronthosting.co.za>
In-reply-to
Content
Much work was done on the launcher since 2.7.0: the spurious directory prefixes are gone, and JAVA_HOME not set at all is dealt with. But when JAVA_HOME is invalid, the message is no better:

PS jython-trunk> $env:JAVA_HOME="c:\foo"
PS jython-trunk> dist\bin\jython  -c "print 42"
Traceback (most recent call last):
  File "jython.py", line 540, in <module>
  File "jython.py", line 531, in main
  File "subprocess.py", line 168, in call
  File "subprocess.py", line 390, in __init__
  File "subprocess.py", line 640, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
[15152] Failed to execute script jython

The uninformative message is the fault of CPython subprocess.call(). I suppose one could catch the exception and print what failed (the same thing as --print).

I take "In combination with the almost useless error-message this is a really a must-fix for 2.7.1" to be a vote for this in 2.7.2.
History
Date User Action Args
2018-02-28 23:21:36jeff.allensetmessageid: <1519860096.27.0.467229070634.issue2346@psf.upfronthosting.co.za>
2018-02-28 23:21:36jeff.allensetrecipients: + jeff.allen, zyasoft, stefan.richthofer, adamburke, brettcannon
2018-02-28 23:21:36jeff.allenlinkissue2346 messages
2018-02-28 23:21:35jeff.allencreate