I have written a python script to connect with weblogic Admin server through WLST script. I have used storeUserConfig() funxtion in WLST to store username and password in a file. So I dont want to specify it when I run connect function. I am getting below error when I run my code. I have attached the code. The "wl" which I have imported is the file contains WLST functions imported as Jython module. If I specify command as connect('weblogic', 'weblogic', t3://localhost:7001) it works.
serverName = 't3://localhost:7001'
userconfig = '/usr/local/bea/bea-WebLogicConfig.properties'
userkey = '/usr/local/bea/bea-WebLogicKey.properties'
wl.connect(userConfigFile=userconfig, userKeyFile=userkey, serverName)