<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi all,<br>I have been using Ironpython for a while and it has been working fine for me.<br>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:<br>IronPython.Runtime.Exceptions.ImportException: No module named nltk<br> at Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)<br> at Microsoft.Scripting.Interpreter.FuncCallInstruction`2.Run(InterpretedFrame<br> frame)<br> at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)<br> at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 a<br>rg1)<br> at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)<br> at
IronPython.Compiler.PythonScriptCode.Run(Scope scope)<br> at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)<br> at IronPython.Compiler.RuntimeScriptCode.Run(Scope scope)<br> at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)<br> at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)<br> at Microsoft.Scripting.Hosting.ScriptEngine.ExecuteFile(String path)<br> at Microsoft.Scripting.Hosting.ScriptRuntime.ExecuteFile(String path)<br> at Microsoft.Scripting.Hosting.ScriptRuntime.UseFile(String path)<br> at readerwriterforOVH.Program.Main(String[] args) in D:\PhD Work\Research\lib<br>omv\test\readerwriterforOVH\readerwriterforOVH\Program.cs:line 105<br><br>Seems
like this is a common problem; something related to a module names
'subprocess'. However, I could not find any definite solution.<br><br>So, any
help on this is appreciated.<br><br>/Sura<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div id="yiv1704605423"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top"><br></td></tr></tbody></table></div></blockquote></td></tr></table>