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.

Similar Messages

  • 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.

  • [SOLVED]No Module named Six

    I got this error when starting deluge. Don't remember doing anything to deluge. Seems to have just broke. I guess that happens magically. Anyway, here's the error:
    [ERROR ] 23:27:46 ui:168 No module named six
    Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/deluge/ui/ui.py", line 149, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
    File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
    from gtkui import start
    File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 75, in <module>
    from deluge.ui.client import client
    File "/usr/lib/python2.7/site-packages/deluge/ui/client.py", line 37, in <module>
    from twisted.internet import reactor, ssl, defer
    File "/usr/lib/python2.7/site-packages/twisted/internet/ssl.py", line 25, in <module>
    from OpenSSL import SSL
    File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
    File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 9, in <module>
    from six import integer_types as _integer_types
    ImportError: No module named six
    [ERROR ] 23:27:46 ui:169 There was an error whilst launching the request UI: gtk
    [ERROR ] 23:27:46 ui:170 Look at the traceback above for more information.
    Literally, the only searches that exist, anywhere, in the massive realm of Google are searches pertaining to a similar problem. Every single one of those links is about libtorrent instead of six though. Tried downgrading, tried reinstalling but nothing works.
    EDIT: How embarrassing. I just upgraded my system. Seems I just need to do that one more time. Sorry.
    Last edited by xworld (2014-03-15 04:33:15)

    $ 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)

  • Problem with modules and ModuleLoader

    Hi everybody,
    i'm facing a real funny problem with modules and
    moduleLoader, i hope
    it's not (only) my fault anyway...
    If i create a normal flex project with fBuilder, i'm able to
    use
    modules in a lot of different ways (as mxml, as as in a
    function etc..)...
    but if i try to use them in my fds application (created with
    fds
    eclipse plugin or as a dataServices project) i can't use
    modules. The compile-time error message is
    always the same:
    Could not resolve <mx:ModuleLoader> to a component
    implementation
    I tried a lot of solutions, paying attention to import all
    the classes, to declaration, naming, positioning
    etc...but nothing changes, this thing is drivining me
    crazy!!!.
    I will appreciate anykind of help.
    TIA
    Fabio

    Any idea?

  • [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 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

  • Line 63: No module named _md5

    Hi I get this error when trying to load the bullet.so plugin in maya 2013:
    # Error: file: /usr/autodesk/maya/scripts/startup/bulletInitUI.mel line 29: ImportError: file /usr/autodesk/maya/lib/python26.zip/hashlib.py line 63: No module named _md5
    I have been told in another forum i need to install a version of python with the md5 module.
    I have python2 installed from extra and I installed checksums from AUR, but still same error. When i google I see lots of posts about md5 being depreciated...?
    Any ideas on how so fix this?

    python2 in arch has md5 support, the problem is that maya does silly thing, and havn't really been updated to work with python 2.7
    A workaround would be python 2.6 in virtualenv.
    Last edited by Mr.Elendig (2012-08-16 18:08:47)

  • [SOLVED] ImportError: No module named pygtk

    I have installed Dropbox from the AUR. Everything has gone well until I tried to start dropbox. It then says:
    Starting Dropbox...
    The Dropbox daemon is not installed!
    Run "dropbox start -i" to install the daemon"
    When I run "dropbox start -i", I get: (I actually run "dropbox-cli start -i," but before I installed dropbox-cli I was having the same problems with the dropbox command:)
    Starting Dropbox...Traceback (most recent call last):
    File "/usr/bin/dropbox-cli", line 1259, in start
         download()
    File "/usr/bin/dropbox-cli", line 280, in download
         import pygtk
    ImportError: No module named pygtk
    From what I've read, this is due to the program expecting python or python2, but  since I have python3 installed, then python links to python3. And pygtk doesn't exist in python3.
    This might or might not be the problem. Regardless, I cannot figure out how to fix this problem.
    Anyone know how to fix this? I really need to use DropBox.
    EDIT: I found an article describing what to install and in what order to fix this.
    Last edited by cobbmic (2015-02-17 19:05:32)

    Hello. Glad you fixed it.
    Please give us at least a link to the "article". For others who are interested in this.
    I quickly search beforehand but couldn't find a solution right away.
    Thanks!
    Edit: wording
    Last edited by rebootl (2015-02-17 22:07:31)

  • Loadercli -p: no module named _csv

    Good afternoon,
    I'm having a problem on a Win2003 X64, with loadercli -p.
    calling it on a cmd shell, I'm getting a "no module named _csv", followed by other messages, regarding the module sax.
    I think that the problem is strictly related to the _csv module rather than the sax one. In the dependent program path/python2.3 I'm not finding such module.
    I have tried copying a standard _csv.lib from a python 2.3.5 distribution, but this produces a "DLL load failed with error code 193". And this because python 2.3 exists only in 32bits.
    Inspecting the installers for the 32 and 64 bits versions of maxdb, I can clearly see that the 64 bits version of sdbrdpy.tgz is missing the two files _csv.lib and _winreg.lib.
    So, how can I fill a bug report/blueprint for MaxDB?

    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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ImportError: no module named java

    One of our customers is using Windows XP SP 3 and they are running into below error when packages are run.
    It is happening at a specific step in IKM where Jython techonology is used. But this kind of issue never occured in dev/qa environments.
    Any hint is greatly appreciated.
    One more thing is customer is on 10.1.3.4, while delivered code was on 10.1.3.4.4 . Could that cause any issues?
    ==================================================================
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
    File "<string>", line 1, in ?
    ImportError: no module named java
    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.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.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(Thread.java:619)
    ==================================================================

    Hi,
    has anyone idea how to resolve this problem? I've error when I try to start Journal:
    org.apache.bsf.BSFException: exception from Jython: Traceback (innermost last):
      File "<string>", line 1, in ?
    ImportError: no module named java
      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.g.y(g.java)
      at com.sunopsis.dwg.cmd.e.run(e.java)
      at java.lang.Thread.run(Unknown Source)
    Any idea what should I do ? JKM which I use is: JKM HSQL.
    Thanks for help.
    ===========================================
    EDIT:
    Solution for my problem was running Designer as Administrator. (Win 7).

  • 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/

  • ImportError: No module named qt [SOLVED]

    I'm having a problem whereby qt cannot be found and all applications that use it fail to load.
    I have installed qt, qt3 and qt4 so, missing packages cannot be the issue.
    Issuing echo $QTDIR returns /opt/qt so the path is found, yet when I run any applications that depend on QT  I get: ImportError: No module named qt
    I noticed other threads with a similar problem but non of them have an answer that applies to me. Does anyone have any ideas? 
    I thought that posting here may be a better choice, since in a programming forum there should be people using python and if this is a known problem an answer will surely be at hand
    Thanks in advance.
    R.
    Last edited by ralvez (2008-03-15 17:14:32)

    @Shaika-Dzari,
    Thanks for your reply. Yes, I know that the "official" QT package is 4.
    I have two programs, one that I wrote and Kodos (a nice tool for RegEx testing/coding). Both started to fail with the same error a few weeks ago.
    Querying my system for info indicated that I have both QT3 and QT4 but in actual execution mode QT4 was not detected.
    I just did something a few minutes ago that got things back to work !! 
    pacman -Sy pyqt pyqt3
    After re-installing both of the packages things are back to normal ... interestingly enough, re-installing PyQT only, which given the error would seem the logical thing to do, did not solve the problem (??) I had to re-install both.
    Thanks again for posting.
    R.

  • [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.

  • [Solved] Recent updates cause Gramps error: No module named _bsddb

    Did a 'pacman -Syu' today and Gramps fails to start:
    $ gramps
    2599: ERROR: gramps.py: line 142: Unhandled exception
    Traceback (most recent call last):
    File "/usr/share/gramps/gui/grampsgui.py", line 271, in __startgramps
    from GrampsLogger import RotateHandler, GtkHandler
    File "/usr/share/gramps/GrampsLogger/__init__.py", line 45, in <module>
    from _GtkHandler import GtkHandler
    File "/usr/share/gramps/GrampsLogger/_GtkHandler.py", line 4, in <module>
    from _ErrorView import ErrorView
    File "/usr/share/gramps/GrampsLogger/_ErrorView.py", line 15, in <module>
    from _ErrorReportAssistant import ErrorReportAssistant
    File "/usr/share/gramps/GrampsLogger/_ErrorReportAssistant.py", line 14, in <module>
    import bsddb
    File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
    import _bsddb
    ImportError: No module named _bsddb
    Was working fine a few days ago ...
    Last edited by ninian (2011-07-07 20:20:32)

    Please put it in the bug report, as installing python2-bsddb didn't seem to fix the issue...
    Report for python2: https://bugs.archlinux.org/task/25045 [CLOSED]
    EDIT:
    In fact, the problem comes from gramps, which should import bsddb3, see GRAMPS wiki.
    Report for gramps (the config should be changed to use bsddb3 by default): https://bugs.archlinux.org/task/25050
    Last edited by Fififox (2011-07-07 08:54:32)

Maybe you are looking for