Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jython & NetBeans

 
bob dapaah
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone here tried to use the integrated Jython capability of NetBeans. I'm trying to import 'string' and I get the following error:
code:
--------------------------------------------------------------------------------
Traceback (innermost last): File "", line 1, in ?ImportError: no module named string at org.python.core.Py.ImportError(Py.java) at org.python.core.imp.import_first(imp.java) at org.python.core.imp.import_name(imp.java) at org.python.core.imp.importName(imp.java) at org.python.core.ImportFunction.load(__builtin__.java) at org.python.core.ImportFunction.__call__(__builtin__.java) at org.python.core.PyObject.__call__(PyObject.java) at org.python.core.__builtin__.__import__(__builtin__.java) at org.python.core.imp.importOne(imp.java) at org.python.pycode._pyx19.f$0(:1) at org.python.pycode._pyx19.call_function() at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.Py.exec(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at org.netbeans.modules.scripting.JPythonScriptType.exec(JPythonScriptType.java:99) at org.openide.execution.ScriptType.exec(ScriptType.java:95) at org.netbeans.modules.scripting.ScriptUtils$3.run(ScriptUtils.java:143) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:119)
--------------------------------------------------------------------------------
Is there anything I could do to rectify this - some sort of path problem perhaps...
Thanks in advance
Bob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic