[IronPython] Pyenchant

Martin Maly Martin.Maly at microsoft.com
Fri Jan 6 18:50:14 CET 2006

IronPython doesn't, by default, look under site-packages directory for imported modules. That may be one part of the problem. Also, since as you do "import enchant" and get error "no module named _enchant", I assume that there may be C extension coming with the enchant library. IronPython doesn't as of now, support the C-extension modules written for CPython.



From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Mohammed QadeerAhmed
Sent: Wednesday, January 04, 2006 1:42 PM
To: users at lists.ironpython.com
Subject: [IronPython] Pyenchant

Hi all,

I am trying to use Pyenchant with IronPython but have not been successful.
Here are few things that I tried to get it to work. I have python 2.4 installed and the Pyenchant library using the pre-built windows installer for python 2.4 downloaded from the pyenchant website. After installing IronPython-1.0-Beta1, I copied the enchant folder from 'C:\Python24\Lib\site-packages' and placed it under the IronPython installation folder. Now if I run the IronPythonConsole and type 'import enchant' it gives me the following error - "No module named _enchant".
As a different approach I tried compiling the pyenchant library from source using IronPython but was not successful.
Does anyone know how to get modules that have been built using the Python Distribution Utilities ('Distutils') to work with IronPython.

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20060106/33d52b1e/attachment.html>

More information about the Ironpython-users mailing list