[Ironpython-users] importing third-party modules
davew252 at tx.rr.com
Sun Jul 3 15:32:37 CEST 2011
On 7/3/2011 5:30 AM, Wolfgang Schmoller wrote:
> I'm working on a site, where I need to work with python. I have
> managed to configure that, so that I can use python instead of
> http://www.nltk.org/). I installed it in the commandline-version of
> IronPython and am able to import it with ipy. But I can't import it in
> the web application. I have tried to work with
> sys.path.append("path\to\nltk"), but the module can't be found.
> I use python via the <script>-tag.
> Best regards
> Wolfgang Schmoller
> Ironpython-users mailing list
> Ironpython-users at python.org
Sounds like a permissions issue under your web server, which I'm
assuming is IIS. You didn't mention any implementation particulars.
I would check that the account the process is running under has specific
permissions on the NLTK install folder.
I'm pretty sure that would cause an import error.
More information about the Ironpython-users