Message11488
RK: I'm glad you were able to run that at the interactive prompt. The output is what I would expect and this suggests the installation is basically good.
However, you'll notice that interactively you didn't get a message about failing to import site, that you quote in your first post, and that there sys.prefix and sys.path are different. The messaage is from this bit of code: https://hg.python.org/jython/file/412a8f9445f7/src/org/python/core/Py.java#l1563
The difference is therefore down to the environment in which Jython is launched by Confluence. Something about that environment causes Jython not to find its home directory. Jython uses this code to find home: https://hg.python.org/jython/file/412a8f9445f7/src/org/python/core/PySystemState.java#l709
Is it possible to define the propery python.home in the JVM that runs Confluence?
I appreciate you haven't changed the environment from 2.5.3, but there's quite an elapsed period between the two, and Jython evolves. It looks like Bob Swift's scripting plug-in has only advanced to Jython 2.5.3. It would be good to see it move to 2.7.1. Do you represent the developer, or are you just a user of it? |
|
Date |
User |
Action |
Args |
2017-07-20 23:27:15 | jeff.allen | set | messageid: <1500593235.69.0.0746483801419.issue2610@psf.upfronthosting.co.za> |
2017-07-20 23:27:15 | jeff.allen | set | recipients:
+ jeff.allen, rkanumola |
2017-07-20 23:27:15 | jeff.allen | link | issue2610 messages |
2017-07-20 23:27:15 | jeff.allen | create | |
|