Message12726

Author adamburke
Recipients adamburke, rkanumola
Date 2019-10-29.12:49:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572353381.12.0.133348193212.issue2816@roundup.psfhosted.org>
In-reply-to
Content
Hi RK, it's hard to say with the detail provided here. If exactly the same scripts runs ok in one context, with a particular Jython executable, but gives this error in another, it would usually point to inconsistent versions of the interpreter. Because it is complaining a particular piece of syntax isn't available. It is also possible with whitespace problems - but you said the literal same script runs fine from the command line.

You may know this already, but to print the version of the Python interpreter (including for Jython) from within a script:

import sys
print(sys.version)

Example output from my local machine:
2.7.2a1+ (, May 20 2019, 14:18:30)
[OpenJDK 64-Bit Server VM (Oracle Corporation)]
History
Date User Action Args
2019-10-29 12:49:41adamburkesetmessageid: <1572353381.12.0.133348193212.issue2816@roundup.psfhosted.org>
2019-10-29 12:49:41adamburkesetrecipients: + adamburke, rkanumola
2019-10-29 12:49:41adamburkelinkissue2816 messages
2019-10-29 12:49:40adamburkecreate