[Ironpython-users] Error when trying to call a python file that imports nltk
surangika ranathunga
lady_radsu at yahoo.com
Wed Feb 29 23:12:16 CET 2012
Hi all,
I have been using Ironpython for a while and it has been working fine for me.
However,
now I have to call a python function that makes use of the nltk
module.When trying to call this python function from my c# code using
Ironpython, I get the following error:
IronPython.Runtime.Exceptions.ImportException: No module named nltk
at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame
frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a
rg1)
at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
at
IronPython.Compiler.PythonScriptCode.Run(Scope scope)
at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)
at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteFile(String path)
at Microsoft.Scripting.Hosting.ScriptRuntime.ExecuteFile(String path)
at Microsoft.Scripting.Hosting.ScriptRuntime.UseFile(String path)
at readerwriterforOVH.Program.Main(String[] args) in D:\PhD Work\Research\lib
omv\test\readerwriterforOVH\readerwriterforOVH\Program.cs:line 105
Seems
like this is a common problem; something related to a module names
'subprocess'. However, I could not find any definite solution.
So, any
help on this is appreciated.
/Sura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120229/14e64a0c/attachment.html>
More information about the Ironpython-users
mailing list