Unable to import NHunspell.dll using ctypes in Python
akshay.ksth at gmail.com
akshay.ksth at gmail.com
Tue Jun 25 03:32:33 EDT 2013
Thanks for the reply Mark. I did what you suggested.
But now I'm getting an error like this.
Traceback (most recent call last):
File "start.py", line 15, in <module>
hunspell = cdll.LoadLibrary('/home/kuro/Desktop/notepad/Hunspellx64.dll')
File "/usr/lib/python2.7/ctypes/__init__.py", line 443, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /home/kuro/Desktop/notepad/Hunspellx64.dll: invalid ELF header
I am really new to using ctypes and dll files. Can you please guide me out.
More information about the Python-list
mailing list