Running the WebLogic Scripting Tool (wlst) from WebCenter Home Results in Errors - ".../UserRename.py" caused an error "Traceback (innermost last) (Doc ID 1591634.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version 11.1.1.6.5 to 11.1.1.8.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

When attempting to run WebLogic Scripting Tool from WebCenter Home,
the following error occurs.

ERROR

Initializing WebLogic Scripting Tool (WLST) ...


Error execing the Python script "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/wlst/UserRename.py" caused an error "Traceback (innermost last):
File "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/wlst/UserRename.py", line 3, in ?
File "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/wlst/WebCenterWLSTHelper.py", line 20, in loadHandler
File "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/script_handlers/UserRenameHandler.py", line 25, in ?
ImportError: no module named sqlserver
"
Error execing the Python script "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/wlst/SynchronizeUser.py" caused an error "Traceback (innermost last):
File "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/wlst/SynchronizeUser.py", line 3, in ?
File "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/wlst/WebCenterWLSTHelper.py", line 20, in loadHandler
File "/export/appl/owc/MiddlewareHome/OracleWebCenter/common/script_handlers/SynchronizeUserHandler.py", line 27, in ?
ImportError: no module named sqlserver
"
Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline>

 

NOTE: Running wlst from [FMW_HOME]/oracle_common home works.
         However some wlst commands specific for WebCenter only work when running wlst from [WEBCENTER_HOME/common/bin.




STEPS

The issue can be reproduced at will with the following steps:

  1. Set the ORACLE_HOME to the WebCenter Home.
     
  2. Run wlst from [ORACLE_HOME]/common/bin
     
    ./wlst.sh
     
    This should return the error.

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms