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

Similar Messages

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

  • OWB-  Creating Target module for csv File

    Hi,
    I have created Flat file module and imported csv file and can any body please let me know how to create target module for .csv
    Thanks in advance
    Raj Sree

    Hi,
    Thank you and I am new to the ETL and OWB. Can you please send me the steps in extracting csv file and sending to oracle database. My email is:
    [email protected]
    Thanks in advance
    Raj Sree

  • 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

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

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

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

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

Maybe you are looking for

  • Code questions in DWCS6

    Hello, my CSS fiole passes 3C3 but my Template which had over 39 problems is now down to Four. I could use some help because I'm clueless to what they are saying. The following notes and warnings highlight missing or conflicting information which cau

  • Massive memory hemorrhage; heap size to go from about 64mb, to 1.3gb usage

    **[SOLVED]** Note: I posted this on stackoverflow as well, but a solution was not found. Here's the problem: [1] http://i.stack.imgur.com/sqqtS.png As you can see, the memory usage balloons out of control! I've had to add arguments to the JVM to incr

  • Search and replace, with pattern matching using a table

    I need to inspect a data stream and standardise a set of codes. I need to 1. Match any patterns with a dash character and remove the dash and any following characters, eg BN-S -> BN, BN-SH -> BN, ARG-22 -> ARG, etc. 2. Make a few specific word for wo

  • Linked Server error: Login Failed for user 'NT AUTHORITY\ANONYMOUS LOGON' between sql server 2005 32 bit and sql server 2012 64 bit

    Hi All, Here the linked server is created between sql server 2012 64 bit and sql server 2005 32 bit. I am getting the below error  when i try to access linked server from third server. I have created linked from Instance 1 to Instance 2. When i acces

  • OCM SDK and OLS/VPD

    Would I be able to use the Oracle Content Management SDK to build my own version of Oracle Files/Files Online/iFiles application but enforce security at the DB level (assuming all my content was labeled) instead of at the application level, using OLS