Discussions
Getting Traceback (innermost last) error while invoking wlst script
Hello experts,
I'm using weblogic version 12.1.2 and python version 2.6.6 and linux version is 2.6.32-504.8.1.el6.x86_64
i prepared a python script to call wlst for displaying something using for loop,
after invoking the script i got to see below errors.
>java weblogic.WLST test.py
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Problem invoking WLST - Traceback (innermost last):
(no code object) at line 0
File "/opt/app/t1c1m1327/scripts/test.py", line 14
print 'Current fruit :', fruits[index]
^
SyntaxError: invalid syntax
could some one check and let me know how to get the output without errors.