|
From: <Rob...@co...> - 2010-12-08 14:47:01
|
Hi, I'm trying to use ConfigObj for handling my property files. This works just fine when I'm running locally on my computer with Python 2.6.6. But the purpose of the script I'm working on is to run it as a python script in Oracle WebLogic with WLST. That's where I have the current problem. When I run this with WLST I get an error immediately that looks like: CLASSPATH=/u01/app/oracle/wls1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/wls1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit_wls/lib/tools.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/wls1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/wls1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar: PATH=/u01/app/oracle/wls1033/wlserver_10.3/server/bin:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/jrockit_wls/jre/bin:/u01/app/oracle/jrockit_wls/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin Your environment has been set. CLASSPATH=/u01/app/oracle/wls1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/wls1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit_wls/lib/tools.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/wls1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/wls1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/u01/app/oracle/wls1033/utils/config/10.3/config-launch.jar::/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbytools.jar:: 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): File "/home/tipdev/wlst_test/start.py", line 17, in ? File "/home/tipdev/wlst_test/./wlst_common.py", line 8, in ? File "/home/tipdev/wlst_test/./configobj.py", line 25, in ? ImportError: cannot import names BOM_UTF8, BOM_UTF16, BOM_UTF16_BE, BOM_UTF16_LE Anyone got any good hints about how to solve this issue? /Robert |
|
From: David H. <neg...@gm...> - 2010-12-08 15:19:59
|
WLST uses jython, so my guess is that they've got a compatibility bug in their implementation of the codecs module. The 1st party python docs clearly state that the BOM constants are provided and exposed by the module. regards, -David On Wed, Dec 8, 2010 at 09:34, <Rob...@co...> wrote: > Hi, > > > > I’m trying to use ConfigObj for handling my property files. > > This works just fine when I’m running locally on my computer with Python > 2.6.6. > > > > But the purpose of the script I’m working on is to run it as a python script > in Oracle WebLogic with WLST. > > That’s where I have the current problem. > > > > When I run this with WLST I get an error immediately that looks like: > > > > CLASSPATH=/u01/app/oracle/wls1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/wls1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit_wls/lib/tools.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/wls1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/wls1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar: > > > > PATH=/u01/app/oracle/wls1033/wlserver_10.3/server/bin:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/jrockit_wls/jre/bin:/u01/app/oracle/jrockit_wls/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin > > > > Your environment has been set. > > > > CLASSPATH=/u01/app/oracle/wls1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/wls1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit_wls/lib/tools.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/wls1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/wls1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/u01/app/oracle/wls1033/utils/config/10.3/config-launch.jar::/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbytools.jar:: > > > > 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): > > File "/home/tipdev/wlst_test/start.py", line 17, in ? > > File "/home/tipdev/wlst_test/./wlst_common.py", line 8, in ? > > File "/home/tipdev/wlst_test/./configobj.py", line 25, in ? > > ImportError: cannot import names BOM_UTF8, BOM_UTF16, BOM_UTF16_BE, > BOM_UTF16_LE > > > > > > Anyone got any good hints about how to solve this issue? > > > > /Robert > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > > |
|
From: Michael F. <fuz...@vo...> - 2010-12-13 12:07:50
|
On 08/12/2010 14:34, Rob...@co... wrote: > > Hi, > > I'm trying to use ConfigObj for handling my property files. > > This works just fine when I'm running locally on my computer with > Python 2.6.6. > > But the purpose of the script I'm working on is to run it as a python > script in Oracle WebLogic with WLST. > > That's where I have the current problem. > > When I run this with WLST I get an error immediately that looks like: > > CLASSPATH=/u01/app/oracle/wls1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/wls1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit_wls/lib/tools.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/wls1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/wls1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar: > > PATH=/u01/app/oracle/wls1033/wlserver_10.3/server/bin:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/jrockit_wls/jre/bin:/u01/app/oracle/jrockit_wls/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin > > Your environment has been set. > > CLASSPATH=/u01/app/oracle/wls1033/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/wls1033/patch_ocp353/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrockit_wls/lib/tools.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/wls1033/modules/features/weblogic.server.modules_10.3.3.0.jar:/u01/app/oracle/wls1033/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/wls1033/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/wls1033/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/u01/app/oracle/wls1033/utils/config/10.3/config-launch.jar::/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/app/oracle/wls1033/wlserver_10.3/common/derby/lib/derbytools.jar:: > > 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): > > File "/home/tipdev/wlst_test/start.py", line 17, in ? > > File "/home/tipdev/wlst_test/./wlst_common.py", line 8, in ? > > File "/home/tipdev/wlst_test/./configobj.py", line 25, in ? > > ImportError: cannot import names BOM_UTF8, BOM_UTF16, BOM_UTF16_BE, > BOM_UTF16_LE > These are all constants though, so it should be easy to modify configobj.py to not require importing them. All the best, Michael Foord > Anyone got any good hints about how to solve this issue? > > /Robert > > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > > > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop -- http://www.voidspace.org.uk/ READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer. |