Forum Stats

  • 3,757,137 Users
  • 2,251,200 Discussions
  • 7,869,739 Comments

Discussions

ImportError: No module named ibm in <script> at line number 4

SukantaBarari-Oracle
SukantaBarari-Oracle Member Posts: 4 Employee
edited Jul 13, 2021 9:49AM in Data Integration

Hi All,

We are trying to send a mail from ODI using jython. We got an error message during "import smtplib" command.

Error description

ODI-1590: The execution of the script failed.

Caused By: javax.script.ScriptException: ImportError: No module named ibm in <script> at line number 4

   at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:221)

   at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:59)

   at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)

   at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)

   at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.execInScriptEngine(SnpScriptingInterpretor.java:454)

   at com.sunopsis.dwg.codeinterpretor.SnpScriptingInterpretor.exec(SnpScriptingInterpretor.java:256)

   at oracle.odi.runtime.agent.execution.interpreter.SessionTaskScriptingInterpretor.scripting(SessionTaskScriptingInterpretor.java:189)

   at oracle.odi.runtime.agent.execution.SessionTask.scripting(SessionTask.java:117)

   at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:49)

   at oracle.odi.runtime.agent.execution.cmd.ScriptingExecutor.execute(ScriptingExecutor.java:21)

   at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:52)

   at oracle.odi.runtime.agent.execution.SessionTask.processTask(SessionTask.java:217)

   at oracle.odi.runtime.agent.execution.SessionTask.doExecuteTask(SessionTask.java:129)

   at oracle.odi.runtime.agent.execution.AbstractSessionTask.execute(AbstractSessionTask.java:892)

   at oracle.odi.runtime.agent.execution.SessionExecutor$SerialTrain.runTasks(SessionExecutor.java:2234)

   at oracle.odi.runtime.agent.execution.SessionExecutor.executeSession(SessionExecutor.java:613)

   at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$1.doAction(TaskExecutorAgentRequestProcessor.java:718)

   at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor$1.doAction(TaskExecutorAgentRequestProcessor.java:611)

   at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:203)

   at oracle.odi.runtime.agent.processor.TaskExecutorAgentRequestProcessor.doProcessStartAgentTask(TaskExecutorAgentRequestProcessor.java:800)

   at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$1400(StartSessRequestProcessor.java:74)

   at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:702)

   at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:180)

   at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:108)

   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

   at oracle.odi.runtime.agent.execution.job.OdiJob.call(OdiJob.java:73)

   at oracle.odi.runtime.agent.execution.job.OdiJob.call(OdiJob.java:73)

   at java.util.concurrent.FutureTask.run(FutureTask.java:266)

   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

   at java.lang.Thread.run(Thread.java:748)

Caused by: Traceback (most recent call last):

 File "<script>", line 4, in <module>

 File "/u01/oracle/mwh/odi/sdk/lib/Lib/smtplib.py", line 44, in <module>

   import socket

 File "/u01/oracle/mwh/odi/sdk/lib/Lib/socket.py", line 3, in <module>

   from _socket import (

 File "/u01/oracle/mwh/odi/sdk/lib/Lib/_socket.py", line 2, in <module>

   import encodings.idna

 File "/u01/oracle/mwh/odi/sdk/lib/Lib/encodings/idna.py", line 9, in <module>

   from com.ibm.icu.text import StringPrep, StringPrepParseException

ImportError: No module named ibm


   at org.python.core.Py.ImportError(Py.java:334)

   at org.python.core.imp.import_logic(imp.java:913)

   at org.python.core.imp.import_module_level(imp.java:970)

   at org.python.core.imp.importName(imp.java:1057)

   at org.python.core.ImportFunction.__call__(__builtin__.java:1280)

   at org.python.core.PyObject.__call__(PyObject.java:450)

   at org.python.core.__builtin__.__import__(__builtin__.java:1232)

   at org.python.core.imp.importFromAs(imp.java:1148)

   at org.python.core.imp.importFrom(imp.java:1124)

   at encodings.idna$py.f$0(/u01/oracle/mwh/odi/sdk/lib/Lib/encodings/idna.py:169)

   at encodings.idna$py.call_function(/u01/oracle/mwh/odi/sdk/lib/Lib/encodings/idna.py)

   at org.python.core.PyTableCode.call(PyTableCode.java:171)

   at org.python.core.PyCode.call(PyCode.java:18)

   at org.python.core.imp.createFromCode(imp.java:436)

   at org.python.core.imp.createFromPyClass(imp.java:237)

   at org.python.core.imp.createFromPyClass(imp.java:205)

   at org.python.core.imp.loadFromSource(imp.java:657)

   at org.python.core.imp.find_module(imp.java:551)

   at org.python.core.PyModule.impAttr(PyModule.java:111)

   at org.python.core.imp.import_next(imp.java:840)

   at org.python.core.imp.import_logic(imp.java:905)

   at org.python.core.imp.import_module_level(imp.java:970)

   at org.python.core.imp.importName(imp.java:1057)

   at org.python.core.ImportFunction.__call__(__builtin__.java:1280)

   at org.python.core.PyObject.__call__(PyObject.java:450)

   at org.python.core.__builtin__.__import__(__builtin__.java:1232)

   at org.python.core.imp.importOne(imp.java:1075)

   at _socket$py.f$0(/u01/oracle/mwh/odi/sdk/lib/Lib/_socket.py:1965)

   at _socket$py.call_function(/u01/oracle/mwh/odi/sdk/lib/Lib/_socket.py)

   at org.python.core.PyTableCode.call(PyTableCode.java:171)

   at org.python.core.PyCode.call(PyCode.java:18)

   at org.python.core.imp.createFromCode(imp.java:436)

   at org.python.core.imp.createFromPyClass(imp.java:237)

   at org.python.core.imp.createFromPyClass(imp.java:205)

   at org.python.core.imp.loadFromSource(imp.java:657)

   at org.python.core.imp.find_module(imp.java:551)

   at org.python.core.imp.import_next(imp.java:838)

   at org.python.core.imp.import_module_level(imp.java:957)

   at org.python.core.imp.importName(imp.java:1057)

   at org.python.core.ImportFunction.__call__(__builtin__.java:1280)

   at org.python.core.PyObject.__call__(PyObject.java:450)

   at org.python.core.__builtin__.__import__(__builtin__.java:1232)

   at org.python.core.imp.importFromAs(imp.java:1148)

   at org.python.core.imp.importFrom(imp.java:1124)

   at socket$py.f$0(/u01/oracle/mwh/odi/sdk/lib/Lib/socket.py:132)

   at socket$py.call_function(/u01/oracle/mwh/odi/sdk/lib/Lib/socket.py)

   at org.python.core.PyTableCode.call(PyTableCode.java:171)

   at org.python.core.PyCode.call(PyCode.java:18)

   at org.python.core.imp.createFromCode(imp.java:436)

   at org.python.core.imp.createFromPyClass(imp.java:237)

   at org.python.core.imp.createFromPyClass(imp.java:205)

   at org.python.core.imp.loadFromSource(imp.java:657)

   at org.python.core.imp.find_module(imp.java:551)

   at org.python.core.imp.import_next(imp.java:838)

   at org.python.core.imp.import_module_level(imp.java:957)

   at org.python.core.imp.importName(imp.java:1057)

   at org.python.core.ImportFunction.__call__(__builtin__.java:1280)

   at org.python.core.PyObject.__call__(PyObject.java:450)

   at org.python.core.__builtin__.__import__(__builtin__.java:1232)

   at org.python.core.imp.importOne(imp.java:1075)

   at smtplib$py.f$0(/u01/oracle/mwh/odi/sdk/lib/Lib/smtplib.py:874)

   at smtplib$py.call_function(/u01/oracle/mwh/odi/sdk/lib/Lib/smtplib.py)

   at org.python.core.PyTableCode.call(PyTableCode.java:171)

   at org.python.core.PyCode.call(PyCode.java:18)

   at org.python.core.imp.createFromCode(imp.java:436)

   at org.python.core.imp.createFromPyClass(imp.java:237)

   at org.python.core.imp.createFromPyClass(imp.java:205)

   at org.python.core.imp.loadFromSource(imp.java:657)

   at org.python.core.imp.find_module(imp.java:551)

   at org.python.core.imp.import_next(imp.java:838)

   at org.python.core.imp.import_module_level(imp.java:957)

   at org.python.core.imp.importName(imp.java:1057)

   at org.python.core.ImportFunction.__call__(__builtin__.java:1280)

   at org.python.core.PyObject.__call__(PyObject.java:450)

   at org.python.core.__builtin__.__import__(__builtin__.java:1232)

   at org.python.core.imp.importOne(imp.java:1075)

   at org.python.pycode._pyx31.f$0(<script>:73)

   at org.python.pycode._pyx31.call_function(<script>)

   at org.python.core.PyTableCode.call(PyTableCode.java:171)

   at org.python.core.PyCode.call(PyCode.java:18)

   at org.python.core.Py.runCode(Py.java:1614)

   at org.python.core.__builtin__.eval(__builtin__.java:497)

   at org.python.core.__builtin__.eval(__builtin__.java:501)

   at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)

   at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)

   ... 29 more