Jython macro which uses PythonInterpreter and Redis script gives an error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Jython macro which uses PythonInterpreter and Redis script gives an error (/thread-22092.html) |
Jython macro which uses PythonInterpreter and Redis script gives an error - rkanumola - Oct-29-2019 Hi, We are trying to use Jython with Redis script within confluence using a Jython macro. We are able to execute the action using Jython from the command line and able to read the variable from redis database and get the result, but when we try to use the PythonInterpreter class from within Java application we get the below error. It would be great can suggest ,how to handle this error. Quote:Traceback (most recent call last): Our execution piece of code for reference: Quote: try { Please let us know if any thing is not clear or need more information to give a solution to this problem. RE: Jython macro which uses PythonInterpreter and Redis script gives an error - rkanumola - Oct-29-2019 More relavant piece of code: Quote: try { RE: Jython macro which uses PythonInterpreter and Redis script gives an error - rkanumola - Oct-30-2019 We are getting the following error for the above piece of sample. Even for "import redis" statemenet we are getting the error. Quote:Traceback (most recent call last): |