Message12726
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)] |
|
Date |
User |
Action |
Args |
2019-10-29 12:49:41 | adamburke | set | messageid: <1572353381.12.0.133348193212.issue2816@roundup.psfhosted.org> |
2019-10-29 12:49:41 | adamburke | set | recipients:
+ adamburke, rkanumola |
2019-10-29 12:49:41 | adamburke | link | issue2816 messages |
2019-10-29 12:49:40 | adamburke | create | |
|