Wlst no module named wlstutility

Hi,
I am trying to create new domain with WLST , I am getting following error when I execute the script. Any pointers on this?
java com.bea.plateng.domain.script.jython.WLST_offline rtq_preprod.py.jms
Welcome to Weblogic Scripting Shell
Traceback (innermost last):
File "rtq_preprod.py.jms", line 9, in ?
ImportError: no module named wlstutility
My classpath ,,,
C:\WLS\81sp4\bea\user_projects\domains\geico-domain\616307>echo %classpath%
C:\WLS\81sp4\bea\jdk142_05\lib\tools.jar;C:\WLS\81sp4\bea\WEBLOG~1\server\lib\we
blogic_sp.jar;C:\WLS\81sp4\bea\WEBLOG~1\server\lib\weblogic.jar;C:\WLS\81sp4\bea
\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\WLS\81sp4\bea\WEBLOG~1\com
mon\eval\pointbase\lib\pbclient44.jar;C:\WLS\81sp4\bea\jdk142_05\jre\lib\rt.jar;
C:\WLS\81sp4\bea\WEBLOG~1\server\lib\webservices.jar;C:\WLS\81sp4\bea\WEBLOG~1\c
ommon\lib\jython.jar;;C:\WLS\81sp4\bea\WEBLOG~1\common\lib\config.jar;;C:\WLS\81
sp4\bea\WEBLOG~1\common\lib\comdev.jar;;C:\WLS\81sp4\bea\WEBLOG~1\common\lib\3rd
party.jar

The error clearly indicates the problem.
Traceback (innermost last):
File "rtq_preprod.py.jms", line 9, in ?
ImportError: no module named wlstutility
What is wlstutility? Looks like its a module that you need to make available to rtq_preprod.py.jms script.
Thanks,
-satya
BEA Blog: http://dev2dev.bea.com/blog/sghattu/

Similar Messages

  • WLST : ImportError: no module named javaos

    Hi,
    I try to run wlst on a platform linux but at the time I launch wlst I obtain the following error: ImportError: no module named javaos
    my classpath contains wlst.jar,jython.jar, and weblogic.jar, tools.jar, rt.jar, etc.
    pythonpath, pythonhome are set to wlst install directory, and modules, scripts "py".
    thanks in advance.
    here the detail of the exception.
    /pdt/pdslpd1/p/8.1/jdk142_05/bin/java -Dwlst.debug.init=true -Duser.home=/pdt/pdc1pd0/p/mdw/bin/weblogic/ -Dpython.home=/pdt/pdslpd1/p/8.1/wlst/ -Dpython.path=/pdt/pdslpd1/p/8.1/wlst/ weblogic.WLST webloadmin.py
    Initializing WebLogic Scripting Tool (WLST) ...
    Setting the python home to /pdt/pdslpd1/p/8.1/wlst/
    Error executing wlstProfile.py
    Traceback (innermost last):
    File "/pdt/pdc1pd0/p/mdw/bin/weblogic/./wlstProfile.py", line 5, in ?
    ImportError: no module named javaos
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Traceback (innermost last):
    File "webloadmin.py", line 1, in ?
    ImportError: no module named re

    Hi,
    Another subject, Could you explain us how to use specific encoding (for example latin-1) to print european characters in stdout.
    I try to declare sys.setDefaultencoding('latin-1') in wlstProfile.py but it doesn't work fine.
    Thanks.

  • ODSI DataSpace Deployment using WLST - "ImportError: No module named dsp"

    Hi,
    I'm currently into a project that deploys ODSI 10gR3 DataSpace using WLST. The deployment i'm referring is basically exporting and importing of the dataspace.
    I have this piece of function that i got from a forum within this Oracle site (reference: Re: Dataspace import and deployment script
    def exportDataSpace(dataspaceName,exportJarFilePath):
    moveToDeploymentSessionMBean(None)
    from com.bea.dsp.management.deployment.session import ExportOptions
    exportoptions = ExportOptions()
    exportoptions.setIncludeConfiguration(1)
    exportoptions.setOverwriteJar(1)
    +wlst.invoke('export',[dataspaceName,exportJarFilePath,exportoptions],['java.lang.String','java.lang.String','com.bea.dsp.management.deployment.session.ExportOptions'])+
    def createDeploymentSession(sessionName):
    moveToDomainServiceMBean()
    +wlst.invoke("createDeploymentSession",[sessionName],["java.lang.String"])+
    moveToDeploymentSessionMBean(sessionName)
    when executing this function, at line 3, I encounter an ImportError saying:
    ImportError: No module named dsp
    Can anyone assist on what to do here? I believe that I should install a jar file, but I'm not pretty sure of what that file is and where it is. I also don't know how to add it to the classpath.
    Thank you in advance.
    Tope

    Hi,
    I have this piece of function that i got from a forum within this Oracle site (reference: Re: Dataspace import and deployment script
    Post your question in the same forum for a better/faster response.
    Thanks,
    Hussein

  • ALSB ImportError: No module named customization

    Hi,
    I am getting this error
    ImportError: No module named customization
    Looks like it is not finding the package in the classpath.
    from com.bea.wli.config.customization import Customization
    bash-3.00$ echo $CLASSPATH
    /opt/mqm/java/lib/com.ibm.mqjms.jar:/opt/mqm/java/lib/fscontext.jar:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/java/lib/providerutil.jar::/usr/local/esb/bea/wlserver_10.0/server/lib/wlpatches/CR382420_1000mp1.jar:/usr/local/esb/bea/user_projects/domains/esbdomain/app_patches/*.jar::/usr/local/esb/bea/patch_wss110/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/esb/bea/patch_wlw1020/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/esb/bea/patch_wls1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/esb/bea/patch_cie640/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/esb/bea/patch_alsb300/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/local/esb/bea/jdk150_11/lib/tools.jar:/usr/local/esb/bea/wlserver_10.0/server/lib/weblogic_sp.jar:/usr/local/esb/bea/wlserver_10.0/server/lib/weblogic.jar:/usr/local/esb/bea/modules/features/weblogic.server.modules_10.0.1.0.jar:/usr/local/esb/bea/modules/features/com.bea.cie.common-plugin.launch_2.1.2.0.jar:/usr/local/esb/bea/wlserver_10.0/server/lib/webservices.jar:/usr/local/esb/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/usr/local/esb/bea/modules/net.sf.antcontrib_1.0b2.0/lib/ant-contrib.jar::/usr/local/esb/bea/wlserver_10.0/../modules/features/alsb.server.modules_3.0.0.0.jar:/usr/local/esb/bea/alsb_3.0/lib/flow/sb-flow.jar:/usr/local/esb/bea/wlserver_10.0/../modules/com.bea.core.jaxen_1.0.0.0_1-1-1.jar:/usr/local/esb/bea/wlserver_10.0/platform/lib/p13n/p13n_system.jar:/usr/local/esb/bea/wlserver_10.0/server/lib/wlxbean.jar:/usr/local/esb/bea/alsb_3.0/lib/version.jar:/usr/local/esb/bea/alsb_3.0/lib/alsb.jar:/usr/local/esb/bea/alsb_3.0/3rdparty/lib/j2ssh-ant.jar:/usr/local/esb/bea/alsb_3.0/3rdparty/lib/j2ssh-common.jar:/usr/local/esb/bea/alsb_3.0/3rdparty/lib/j2ssh-core.jar:/usr/local/esb/bea/alsb_3.0/3rdparty/lib/j2ssh-dameon.jar:/usr/local/esb/bea/alsb_3.0/3rdparty/classes:/usr/local/esb/bea/wlserver_10.0/../modules/com.bea.core.apache.commons.logging_1.1.0.jar::/usr/local/esb/bea/wlserver_10.0/common/eval/pointbase/lib/pbembedded51.jar:/usr/local/esb/bea/wlserver_10.0/common/eval/pointbase/lib/pbupgrade51.jar:/usr/local/esb/bea/wlserver_10.0/common/eval/pointbase/lib/pbclient51.jar:/usr/local/esb/bea/wlserver_10.0/server/lib/xqrl.jar:
    I see alsb.jar is in the classpath and unable to figure out why WLST is complaining about customization package.
    Does anyone know which alsb jar file contains this com.bea.wli.config.customization package ?
    Thanks --agr                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    I am running into customization problem.
    For somereason, ALSBConfigurationMBean.customize() method expects two arguments while ALSB API needs only one argument http://edocs.bea.com/alsb/docs30/javadoc/com/bea/wli/sb/management/configuration/ALSBConfigurationMBean.html#customize(java.util.List).
    As you see in the script I am passing one List argument as expected by API above.
    Has anyone encountered this error. Anything wron on my script ?
    Here is the code I am using in my jython script.
    if custfile != None :
    print "************************************************************************************************************"
    print 'Loading customization file...', custfile
    print "************************************************************************************************************"
    input = FileInputStream(custfile)
    custlist = Customization.fromXML(input)
    filteredCustList = ArrayList()
    setRef = HashSet(createdRef)
    # apply a filter to all the customizations to narrow the target to the created resources
    for customization in custlist:
    print customization
    newcustomization = customization.clone(setRef)
    filteredCustList.add(newcustomization)
    print filteredCustList
    ALSBConfigurationMBean.customize(filteredCustList)
    sessionMBean.activateSession(sessionName, "import file completed");
    print
    print '-- DEPLOYMENT COMPLETE --'
    com.bea.wli.config.customization.EnvValueCustomization@1f9690e
    [email protected]d08
    com.bea.wli.config.customization.ReferenceCustomization@14c491b
    [com.bea.wli.config.customization.EnvValueCustomization@19726d9, [email protected]c2, com.bea.wli.config.customization.ReferenceCustomization@1a68065]
    Unexpected error: exceptions.TypeError
    No stack trace available.
    Problem invoking WLST - Traceback (innermost last):
    File "/usr/local/esb/sse/DeployALSBResources.py", line 198, in ?
    TypeError: customize(): expected 2 args; got 1
    Thanks --agr                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • [ALSB 3.0] ImportError: No module named wli

    Hi all,
    I've already posted a problem that I got moving my WLST scripts from ALSB 2.6 to 3.0.
    As suggested in threadID=300006156 I changed some deprecated code.
    The error is:
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File ".../EventBus/scripts/admin.py", line 2, in ?
    [java] ImportError: No module named wli
    and first lines of admin.py now are:
    =====================
    import wlstModule
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from utils import createSessionName
    from utils import loadProps
    from utils import loadXML
    =====================
    Before running WLST from ant I run the related
    ./setDomainEnv.sh from my ALSB domain folder.
    What could I check to solve that ?
    Regards
    ferp

    I had a similar problem, but with a different file. The SessionManagementMBean class has moved to a new JAR file. You can find the new JAR file at <BEA_HOME>/alsb_3.0/lib/sb-kernel-api.jar
    Once I corrected my classpath to include this jar file, my older scripts started working again.

  • [OSB 10.3.1] ImportError: No module named wli

    Hi all,
    I'm migrating my WLST code from ALSB 3.0 to OSB 10.3.1 and I get some troubles. In order to understand where is the problem, I did:
    1) create basic.py as described in http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/javadoc/com/bea/wli/sb/management/configuration/SessionManagementMBean.html
    2) set the classpath and environment variables correctly by invoking the setDomainEnv.cmd
    K:\EventBus\scripts>f:\software\developing\osb1031\domains\osb_cluster1\bin\setDomainEnv.cmd
    3) execute java weblogic.WLST basic.py
    K:\EventBus\scripts>java weblogic.WLST basic.py
    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 "K:\EventBus\scripts\basic.py", line 2, in ?
    ImportError: No module named wli
    Could anyone please help me to solve that ?
    Regards
    ferp

    Thanks a lot! One step solved but another raises ...
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain ...
    Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    For more help, use help(domainRuntime)
    Unexpected error: exceptions.AttributeError
    No stack trace available.
    Problem invoking WLST - Traceback (innermost last):
    File "C:\projects\osb1031\basic.py", line 16, in ?
    AttributeError: 'None' object has no attribute 'createSession'
    Where:
    import wlstModule
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    from com.bea.wli.config import Ref
    try:
    connect("weblogic", "weblogic", "t3://localhost:7001")
    domainRuntime()
    sessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
    sessionMBean.createSession("mysession") <- line 16
    So I imagine that findService returns a null object!
    regards
    ferp

  • ImportError: No module named com.bea.wli.sb.management.configuration

    Hi all,
    when i run the python script in python shell i am getting this error:
    Traceback (most recent call last):
    File "D:\osb_disable_service.py", line 2, in <module>
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    ImportError: No module named com.bea.wli.sb.management.configuration
    i have set the CLASSPATH to D:\bea\wlserver_10.3\server\lib\weblogic.jar
    i have set $CLASSPATH to D:\bea\osb_10.3\lib\sb-kernel-api.jar

    version: Oracle Service Bus 10gR3..
    the python script:
    from com.bea.wli.sb.management.configuration import SessionManagementMBean
    from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
    from com.bea.wli.config import Ref
    from java.lang import String
    from com.bea.wli.monitoring import StatisticType
    from com.bea.wli.config import Ref
    from com.bea.wli.sb.util import Refs
    from com.bea.wli.sb.management.configuration import CommonServiceConfigurationMBean
    from java.lang import String
    from com.bea.wli.monitoring import StatisticType
    from com.bea.wli.config import Ref
    from com.bea.wli.sb.util import Refs
    from com.bea.wli.sb.management.configuration import CommonServiceConfigurationMBean
    admin_server="localhost"
    admin_server_poort="7001"
    wluser="weblogic"
    wlpassword="weblogic"
    domain="base_domain"
    project=raw_input("JMSResponseMessage" )
    service=raw_input("getResponse_proxyWsdl")
    action=raw_input("disable")
    connect(wluser, wlpassword, 't3://'+ admin_server + ':' + admin_server_poort)
    domainRuntime()
    # Create a session name
    #sessionName =
    sessionName = String("SessionScript"+Long(System.currentTimeMillis()).toString())
    print('… after session. Session is: ', sessionName)
    # Get the session MBean and create a session
    sessionMBean = findService(SessionManagementMBean.NAME,SessionManagementMBean.TYPE)
    print('SessionMBean is: ', sessionMBean)
    sessionMBean.createSession(sessionName)
    print(String('Session was created … ').concat(sessionName))
    # Get the ProxyServiceConfigurationMBean specific to our session
    mbean = findService(String("ProxyServiceConfiguration.").concat(sessionName),'com.bea.wli.sb.management.configuration.ProxyServiceConfigurationMBean')
    # Creates a reference to a folder.
    # and ‘ProxyServices’ is a folder in the project
    #folderRef = Refs.makeParentRef(‘project/’)
    # and ‘ProxyServices’ is a folder in the project
    projectName = Refs.makeParentRef(project + '/')
    proxyRef = Refs.makeProxyRef(projectName, service)
    # do the action
    def setService():
    if action == 'disable':
    print "Disabling " + service
    mbean.disableService(proxyRef)
    else:
    print "Enabling " + service
    mbean.enableService(proxyRef)
    # or enable it
    setService()
    # Now commit (activate) the changes
    sessionMBean.activateSession(sessionName, "disabled PS")
    print (' has been completed')
    print
    disconnect()
    exit()
    WLST command: java weblogic.WLST filename

  • ImportError: no module named java  : While running a scenario (ODI 10.1.3.)

    Hi All,
    When i am running a scenario i am getting the below error in the 'error log ' file....Please let me know any pointers on the same.. its urgent:-
    =========================================================
    [oraodi@apo13100098 error]$ cat SIL_TIMEDIMENSION_CALCONFIG.30402.log
    12/15/11 10:26 AM :
    Session No-> 30402
    Package Name-> SIL_TIMEDIMENSION_CALCONFIG
    Step Name-> SIL_TimeDimension_CalConfig.MCAL_CONFIG_G
    Error Details->
    org.apache.bsf.BSFException: exception from Jython:
    Traceback (innermost last):
    File "<string>", line 2, in ?
    ImportError: no module named java
    at org.apache.bsf.engines.jython.JythonEngine.exec(JythonEngine.java:146)
    at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.i(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    ===========================================================================================
    Cheers
    Manoj

    Hi Venkat,
    The error got resolved after adding '/usr/kerberos/bin:/usr/local/bin' to my PATH variable.
    cheers
    Manoj

  • Problem:No module named gtk

    Hi,I just install the compiz-fusion,and it work very well for a while.
    But when I restare the computer,the compiz-fusion can't start.Here is the error messag
    [tensecor@arch ~]$ fusion-icon
    * Detected Session: gnome
    * Searching for installed applications...
    * NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
    * Using the GTK Interface
    * No module named gtk
    ... Trying another interface
    * Using the Qt4 Interface
    * No module named PyQt4
    ... Trying another interface
    * Using the Qt3 Interface
    * Interface not installed
    *** Error: All interfaces failed, aborting
    What's wrong?How can I fix it ? Can somebody help me?Thank you!
    Last edited by tensecor (2008-11-01 16:54:30)

    robertp wrote:Install pygtk or pyqt.
    I have install pygtk.But it seems don't work either.
    And it output the same error message.

  • [SOLVED] calibre fails to start (python2-six: No module named moves )

    i have same problem with last calibre (2.28.0-1):
    $ calibre
    Traceback (most recent call last):
    File "/usr/lib/calibre/calibre/gui2/ui.py", line 226, in initialize
    ac.do_genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 143, in do_genesis
    self.genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/add.py", line 82, in genesis
    from calibre.ebooks.oeb.polish.create import valid_empty_formats
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/create.py", line 18, in <module>
    from calibre.ebooks.oeb.polish.parsing import parse
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
    from html5lib.constants import namespaces, tableInsertModeElements, EOF
    File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
    File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
    from . import inputstream
    File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
    from six.moves import http_client
    ImportError: No module named moves
    $ calibre-debug -g
    calibre 2.28 isfrozen: False is64bit: False
    Linux-4.0.1-1-ARCH-i686-with-glibc2.0 Linux ('32bit', 'ELF')
    ('Linux', '4.0.1-1-ARCH', '#1 SMP PREEMPT Wed Apr 29 12:15:20 CEST 2015')
    Python 2.7.9
    Linux: ('', '', '')
    Starting up...
    Traceback (most recent call last):
    File "/usr/lib/calibre/calibre/gui2/ui.py", line 226, in initialize
    ac.do_genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 143, in do_genesis
    self.genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/add.py", line 82, in genesis
    from calibre.ebooks.oeb.polish.create import valid_empty_formats
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/create.py", line 18, in <module>
    from calibre.ebooks.oeb.polish.parsing import parse
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
    from html5lib.constants import namespaces, tableInsertModeElements, EOF
    File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
    File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
    from . import inputstream
    File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
    from six.moves import http_client
    ImportError: No module named moves
    $ ebook-edit
    Traceback (most recent call last):
    File "/usr/bin/ebook-edit", line 20, in <module>
    sys.exit(ebook_edit())
    File "/usr/lib/calibre/calibre/gui_launch.py", line 83, in ebook_edit
    main(args)
    File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 76, in main
    _run(args)
    File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 51, in _run
    from calibre.gui2.tweak_book.ui import Main
    File "/usr/lib/calibre/calibre/gui2/tweak_book/ui.py", line 28, in <module>
    from calibre.gui2.tweak_book.file_list import FileListWidget
    File "/usr/lib/calibre/calibre/gui2/tweak_book/file_list.py", line 23, in <module>
    from calibre.ebooks.oeb.polish.container import guess_type, OEB_FONTS
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py", line 32, in <module>
    from calibre.ebooks.oeb.polish.parsing import parse as parse_html_tweak
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
    from html5lib.constants import namespaces, tableInsertModeElements, EOF
    File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
    File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
    from . import inputstream
    File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
    from six.moves import http_client
    ImportError: No module named moves
    $ pacman -Q|grep calibre
    calibre 2.28.0-1
    [topo@linux ~]$ pacman -Q|grep python
    python 3.4.3-2
    python-cairo 1.10.0-5
    python-dbus 1.2.0-4
    python-dbus-common 1.2.0-4
    python-gobject 3.16.1-1
    python-gobject2 2.28.6-11
    python-html2text 2015.4.14-1
    python-lhafile 0.1.0fs4-1
    python-pycups 1.9.72-2
    python-pycurl 7.19.5.1-2
    python-pyqt4 4.11.3-4
    python-requests 2.6.2-1
    python-setuptools 1:15.2-1
    python-sip 4.16.7-1
    python-xdg 0.25-2
    python2 2.7.9-1
    python2-apsw 3.8.9-1
    python2-beaker 1.7.0-1
    python2-beautifulsoup3 3.2.1-3
    python2-cairo 1.10.0-2
    python2-cffi 0.9.2-2
    python2-chardet 2.3.0-1
    python2-cherrypy 3.6.0-1
    python2-crypto 2.6.1-2
    python2-cryptography 0.8.2-1
    python2-cssselect 0.9.1-2
    python2-cssutils 1.0-2
    python2-dateutil 2.4.2-1
    python2-dbus 1.2.0-4
    python2-dnspython 1.12.0-1
    python2-enum34 1.0.4-1
    python2-fuse 0.2.1-5
    python2-gobject 3.16.1-1
    python2-gobject2 2.28.6-11
    python2-html5lib 0.999-5
    python2-lxml 3.4.4-1
    python2-mako 1.0.1-1
    python2-markupsafe 0.23-2
    python2-mechanize 0.2.5-4
    python2-netifaces 0.10.4-1
    python2-numpy 1.9.2-2
    python2-pillow 2.8.1-1
    python2-ply 3.6-1
    python2-psutil 2.2.1-2
    python2-pyasn1 0.1.7-2
    python2-pycparser 2.12-1
    python2-pyenchant 1.6.6-1
    python2-pygments 2.0.2-2
    python2-pyopenssl 0.14-3
    python2-pyqt4 4.11.3-4
    python2-pyqt5 5.4.1-2
    python2-reportlab 3.1.44-2
    python2-setuptools 1:15.2-1
    python2-sip 4.16.7-1
    python2-six 1.9.0-1
    python2-twisted 15.1.0-1
    python2-xdg 0.25-2
    python2-zope-interface 4.1.2-2
    only ebook-viewer works.
    if I install it from official site, it works.
    Last edited by quellen (2015-05-17 16:28:49)

    $ pacman -Qkk python2-six python2 calibre
    python2-six: 12 file totali, 0 file alterati
    python2: 4716 file totali, 0 file alterati
    calibre: 4881 file totali, 0 file alterati
    $ python2
    Python 2.7.9 (default, Dec 11 2014, 05:36:55)
    [GCC 4.9.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import six
    >>> six.__file__
    '/usr/lib/python2.7/site-packages/six/__init__.pyc'
    >>>
    $ ls -l /usr/lib/python2.7/site-packages/six/
    totale 84
    -rw-r--r-- 1 root root 58 22 mar 2014 __init__.py
    -rw-r--r-- 1 root root 236 28 nov 21.06 __init__.pyc
    -rw-r--r-- 1 root root 236 28 nov 21.06 __init__.pyo
    -rw-r--r-- 1 root root 20588 22 mar 2014 six.py
    -rw-r--r-- 1 root root 20739 28 nov 21.06 six.pyc
    -rw-r--r-- 1 root root 20739 28 nov 21.06 six.pyo
    Last edited by quellen (2015-05-17 12:28:15)

  • No module named collections

    Hi Experts,
    I've installed TREX 7.0(standalone, win32). I'm trying to enable semantic search by following the document at 'https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f0d3be0e-0401-0010-b780-ff7e4e103ea0'.
    In the step 3., when i try to create a .xtm file using
    "txt2xtm.py --input=
    <TREX_DIR>     opicmapsexampleexample.txt -- output=<TREX_DIR>     opicmapsexampleexample.xtm"
    (in my case, txt2xtm.py --input=C:usrsapTRXTRX00exe     opicmapsexampleexample.txt --output=C:usrsapTRXTRX00exe     opicmapsexampleexample.xtm)
    I get the import error, 'No module named collections'.
    I searched for 'collections.py' file in the entire directory where trex was installed(C:usrsap), but found result is zero.
    It requires to activate the python activation as given in,
    'http://help.sap.com/saphelp_nw04s/helpdata/en/fe/72f11aae4f754d90f44680283a3634/frameset.htm'
    Here, i followed 'Activate the Python extension handler' and in 'Registering the Python extensions' part , I changed "if '0' to '1'" for 'Topic Map' and 'Semantic Search' extensions.
    Here're the commands executed in command prompt,
    C:Documents and SettingsC5119720>cd C:usrsapTRXTRX00
    C:usrsapTRXTRX00>TREXSettings.bat
    C:usrsapTRXTRX00>cd C:usrsapTRXTRX00exeextensionsxtm
    C:usrsapTRXTRX00exeextensionsxtm>txt2xtm.py --input=C:usrsapTRXTRX00exe     opicmapsexampl
    eexample.txt --output=C:usrsapTRXTRX00exe     opicmapsexampleexample.xtm
    Traceback (most recent call last):
      File "C:usrsapTRXTRX00exeextensionsxtm     xt2xtm.py", line 4, in <module>
        from testbase import TestBase, TestError
      File "C:usrsapTRXTRX00exeextensionsxtm     estbase.py", line 2, in <module>
        import os, sys, string, thread, threading, time, fuzzypy
      File "C:usrsapTRXTRX00exePythonlib     hreading.py", line 13, in <module>
        from collections import deque
    ImportError: No module named collections
    C:usrsapTRXTRX00exeextensionsxtm>
    Please suggest how to get this 'collections' module.
    Thanks,
    Arun

    Hi All,
    I got the solution for this. I've been executing the scripts txt2xtm.py without using 'python' keyword. The screenshots given in the document doesn't contain this information and it's relevant for a release lower than 7.0. After adding 'python' keyword before the script name, the error has gone.
    Best Regards,
    Arun

  • No module named csv

    Hi All,
    I'm a newbie to ODI and I'm trying to write a Jython script that manipulates CSV files. I tried to use the csv module of Python and on a Python script it works OK.
    Now I tried to create a procedure with a Jython step but when I try to execute it I get the following error message:
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 1, in ?
    ImportError: no module named csv
         at org.apache.bsf.engines.jython.JythonEngine.exec(Unknown Source)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Can I use this Python module in ODI or do I have to write my own CSV handling solution.
    Frank

    Lars, thanks a lot for your reply,
    in the follow, all the informations you wanted.
    You can reproduce this behavior on every 64 bits architecture.
    MaxDB version: 7.6.03.15 (but also on the latest the files are not available, check if you like)
    output of sdbverify:
    an unexpected error occurred
    (btw, I wouldn't like to spend my time to check why this happens. I am sure that the loadercli -p problem is due to the missing files. It is simply a python 'import' problem.)
    output of loadercli -p
    No module named _csv
    ['C:\\Program Files\\sdb\\programs\\lib\\python2.3\\sdb\\loader', 'C:\\Program F
    iles\\sdb\\programs\\lib\\python2.3', 'C:\\Program Files\\sdb\\programs\\pgm\\py
    thon2.3.zip', 'C:\\Program Files\\sdb\\programs\\pgm\\python23.zip', 'C:\\Docume
    nts and Settings\\asadmin\\Desktop', 'C:\\Program Files\\sdb\\programs\\pgm']
    Traceback (most recent call last):
      File "C:\Program Files\sdb\programs\lib\python2.3\sdb\loader\transport.py", li
    ne 2834, in ?
        class TransformationPackage (sax.ContentHandler):
    NameError: name 'sax' is not defined
    Edited by: Ivo Bellin on Oct 14, 2008 4:41 PM

  • Cython problem - No module named Cython

    Hello,
    I try to use Cython in my programm. I use python 2.5.5 version. I install Cython from official repository.
    I try:
    from Cython import *
    but see error:No module named Cython
    Howew can i correct use Cython in Arch Linux?
    Thank you.

    The Cython package in the official repository is only for Python 2.7. If you need to use Cython with Python 2.5, then you could write your own PKGBUILD to install it.

  • Superkaramba Python "No module named os"

    When starting themes in Superkaramba, I receive the following error:
    [dave@myhost ~]$ superkaramba
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    'import site' failed; use -v for traceback
    superkaramba: TaskManager::TaskManager()
    Traceback (most recent call last):
    File "/home/dave/OSXDocker/OSXDocker.py", line 4, in ?
    import os
    ImportError: No module named os
    According to this page http://www.bscw.de/english/faq/faq_i11.html, a library of python needs to be set properly during build.  Any idea how to correct these errors?

    dave.roberts wrote:How do we vote for such packages?
    check this out: http://bbs.archlinux.org/viewtopic.php?t=11605
    dave.roberts wrote:
    Maybe this could be made more useful if there was "automatic voting" or a hit to a counter on a server every time a user installs the package via pacman.  If some package has many many downloads / installs via pacman, it would be wise to include it in the official repository.
    I know it's easy to spout off ideas without backing them with coding or implementation ideas, but it seems useful.
    I proposed this on the mailing list when they released AUR (today)... it sounds interesting, however, due to numerous mirrors, it's almost impossible... especially if one mirror fails and pacman goes to the next, it would record 2 "votes" for that package...
    Xentac brought up the idea of incorporating it into archstats, as that records installed packages... which could be promising... we'll see what develops

  • Import error: no module named odi

    When i try to do a reverse engineering in planning. it says started when i dadi ok. When i check the operator designer, under start reverse it throws the following error:
    (innermost last):
    File "<string>", line 3, in ?
    ImportError: No module named odi
    at org.apache.bsf.engines.jython.JythonEngine.exec(Unknown Source)
         at com.sunopsis.dwg.codeinterpretor.k.a(k.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.scripting(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execScriptingOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    can anyone please help me,
    Thanks in advance,
    Hanson

    You need to edit the PKGBUILD so that it says
    python2 setup.py install --root=$pkgdir/ --optimize=1
    instead of
    python setup.py install --root=$pkgdir/ --optimize=1
    because it uses python2, and python means python3 now (this package has been last updated over a year ago, so I flagged it out-of-date)
    Bad timing ;P http://mailman.archlinux.org/pipermail/ … 23055.html
    Edit: I think you need python2-setuptools or python2-distribute as a dependency instead of 'setuptools' https://aur.archlinux.org/packages.php?ID=43973
    Last edited by karol (2011-12-01 16:17:15)

Maybe you are looking for

  • SCCM 2012 R2 Installation with Remote SQL Instance

    I am trying to install SCCM 2012 R2 and during the install it asks for your SQL Server Name.  I have a remote SQL Server which I can ping all day but the installation is telling me "The network path was not found".  I turned the firewall off on the S

  • Folders Gone?

    I was in MACINTOSH HD > USER > PICTURES I created a new folder called "wallpapers" and put all my wallpapers that were in the PICTURES folder in there. After doing this all other folders disappeared from the PICTURES folder including the iPhoto folde

  • Click/pop on a great track

    oh man..I have an otherwise perfect track. It's an acoustic guitar track. There is a tiny boo boo/click pop. I tried zooming in and then opening the sample editor. Not only can't i hear anything once i'm in the sample editor but I can't find the clic

  • My AirPort Express Has Two Names

    No, it's not the title of a bad 50's sci-fi film... I recently did the paperclip reset to factory settings on my 5-year-old AX. When I went to set it up again using AirPort Utility, the device was found and given a new default name. The previous name

  • Can you control videos in Keynote for iPad?

    Just got hold of my first iPad and I'm putting together a simple Keynote presentation on it. So far really impressed with how slick the Keynote app is, apart from one thing however... When you include a video on a slide, there seems to be absolutley