When we were running some jython scripts, we were trying to import some packages but got an error:
from org.python.modules import re
WASX7015E: Exception running command: "from org.python.modules import re"; exception information:
com.ibm.bsf.BSFException: exception from Jython:
Traceback (innermost last):
File "", line 1, in ?
ImportError: no module named org
To recreate the error, rather than running this in a script I just started up a wsadmin session and on doing so I got the following error:
*sys-package-mgr*: can't create package cache dir, '
After a bit of investigation, it turned out the "cachedir" directory was owned as root but we run our scripts as a WASAdmin user. It looks like the permissions were changed to root after applying some fixpacks a couple of weeks ago, so a simple chown on cachedir resolved the issue.
No comments:
Post a Comment