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.
 
Martin


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohammed QadeerAhmed
Sent: Wednesday, January 04, 2006 1:42 PM
To: users@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,

 

Regards,

Qadeer.

_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to