wls:/offline> sys.version
'2.2.1'
wls:/offline> sys.platform
'java1.8.0_162'
wls:/offline> sys.path.append("/opt/weblogic/jython/Lib")
wls:/offline> sys.path
['.', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.internal.thirdparty.jython.jar/Lib', '__classpath__', '/opt/weblogic/12.2.1.3/wlserver/server/lib/weblogic.jar', '/opt/weblogic/12.2.1.3/wlserver/common/wlst/modules/jython-modules.jar/Lib', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting/utils/modules', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting/core/utils/modules', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.scripting.jar/weblogic/management/scripting/utils/modules', '/opt/weblogic/12.2.1.3/wlserver/common/wlst', '/opt/weblogic/12.2.1.3/wlserver/common/wlst/lib', '/opt/weblogic/12.2.1.3/wlserver/common/wlst/modules', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.tools.migration.jar/wlstScriptDir', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.tools.migration.jar/wlstScriptDir/lib', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.tools.migration.jar/wlstScriptDir/modules', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.scripting.jar/wlstScriptDir', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.scripting.jar/wlstScriptDir/lib', '/opt/weblogic/12.2.1.3/wlserver/modules/com.oracle.weblogic.management.scripting.jar/wlstScriptDir/modules', '/opt/weblogic/12.2.1.3/oracle_common/modules/fmwplatform/common/fmwplatform-wlst-dependencies.jar/wlstScriptDir', '/opt/weblogic/12.2.1.3/oracle_common/modules/fmwplatform/common/fmwplatform-wlst-dependencies.jar/wlstScriptDir/lib', '/opt/weblogic/12.2.1.3/oracle_common/modules/fmwplatform/common/fmwplatform-wlst-dependencies.jar/wlstScriptDir/modules', '/opt/weblogic/jython/Lib']
wls:/offline>
wls:/offline> import argparse
Traceback (innermost last):
File "<console>", line 1, in ?
File "/opt/weblogic/jython/Lib/argparse.py", line 611
yield subaction
^
SyntaxError: invalid syntax
BR
Tig
Tig <tigryss.droid@gmail.com> added the comment:
Hi Jeff,
actually I am the sysadmin the wlst is correct installed, and I hope that
Jython will be part of my system
I will send the sys details tomorrow.
br
Tig
Added file: http://bugs.jython.org/file1648/unnamed
_______________________________________
Jython tracker <report@bugs.jython.org>
<http://bugs.jython.org/issue2704>
_______________________________________