Self compiled pyenchant not working

279 views
Skip to first unread message

lupussy

unread,
Apr 5, 2015, 8:04:35 PM4/5/15
to pyencha...@googlegroups.com

I'm using python 2.7.9 (32 bit) under win7-64bit, I'm using pyenchant (v. 1.6.6), installed via "pip install pyenchant", occasionally, it works without problems.


Now I've downloaded pyenchant-master.zip (v. 1.6.6) from https://github.com/rfk/pyenchant, compiled it with TDM-GCC-32 (gcc 4.9.2) and copied the dll files (libenchant-1.dll, libenchant_ispell.dll and libenchant_myspell.dll) into the proper folders (enchant/ or rather enchant/lib/enchant/), overwriting the ones installed via pip.


But after this action pyenchant didn't work fully:

1) "import enchant" works in IDLE, in my editor SciTE and in ipython I get:


** (pythonw.exe:3288): WARNING **: Error loading plugin: `D:\Python27\lib\site-packages\enchant\lib\enchant\libenchant_myspell.dll': Die angegebene Prozedur wurde nicht gefunden. (= the indicated procedure wasn't found.)


The numbers after pythonw.exe are changing every time I run the python prog again.


2) With d = enchant.Dict("en_US") I get the following message:


Traceback (most recent call last):

File "test_enchant.py", line 10, in <module>

DE = enchant.Dict("en_US")

File "D:\Python27\lib\site-packages\enchant\__init__.py", line 555, in __init__

_EnchantObject.__init__(self)

File "D:\Python27\lib\site-packages\enchant\__init__.py", line 168, in __init__

self._init_this()

File "D:\Python27\lib\site-packages\enchant\__init__.py", line 562, in _init_this

this = self._broker._request_dict_data(self.tag)

File "D:\Python27\lib\site-packages\enchant\__init__.py", line 307, in _request_dict_data

self._raise_error(eStr % (tag,),DictNotFoundError)

File "D:\Python27\lib\site-packages\enchant\__init__.py", line 255, in _raise_error

raise eclass(default)

enchant.errors.DictNotFoundError: Dictionary for language 'en_US' could not be found


What is going wrong? How was the working pyenchant compiled?


L.


Ryan Kelly

unread,
Apr 6, 2015, 12:33:35 AM4/6/15
to pyencha...@googlegroups.com
On 3/04/2015 01:45, lupussy wrote:
>
> Now I've downloaded pyenchant-master.zip (v. 1.6.6) from
> https://github.com/rfk/pyenchant, compiled it with TDM-GCC-32 (gcc
> 4.9.2) and copied the dll files (libenchant-1.dll, libenchant_ispell.dll
> and libenchant_myspell.dll) into the proper folders (enchant/ or rather
> enchant/lib/enchant/), overwriting the ones installed via pip.
>
>
> But after this action pyenchant didn't work fully:
> [..snip..]
>
> What is going wrong? How was the working pyenchant compiled?
>

Everything I know about compiling enchant for windows is encapsulated in
the scripts here:


https://github.com/rfk/pyenchant/tree/master/tools/pyenchant-bdist-win32-sources

But honestly, I can no longer compile enchant from source either :-(

The existing 32-bit compiled DLLs work, but I haven't been able to
produce new DLLs in either 32-bit or 64-bit configurations.

I *suspect* it's due to an issue with pre-compiled dependencies, and we
need to update glib and friends as part of a fresh compile. But I just
haven't found the time to dig into it in any detail.


Cheers,

Ryan
Reply all
Reply to author
Forward
0 new messages