Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49136
| Date | 2013-06-25 03:45 -0400 |
|---|---|
| From | Dave Angel <davea@davea.name> |
| Subject | Re: Unable to import NHunspell.dll using ctypes in Python |
| References | <23e633db-afbe-4edc-9291-5a9e242e86d0@googlegroups.com> <mailman.3799.1372144029.3114.python-list@python.org> <4c1ad40e-cc53-4414-8822-101d5591f598@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3801.1372146364.3114.python-list@python.org> (permalink) |
On 06/25/2013 03:32 AM, akshay.ksth@gmail.com wrote:
> 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.
>
This is why it's frequently useful to supply the information with your
original question: what version of Python, and what OS.
You're on Linux or similar, and dll's are the way a Windows executable
is named. So chances are you're trying to install a Windows dll on
Linux, which is unlikely to work except under very special circumstances
(eg. within WINE).
Try going back to where you downloaded this file, and see if you can get
the one for your OS.
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unable to import NHunspell.dll using ctypes in Python akshay.ksth@gmail.com - 2013-06-24 23:23 -0700
Re: Unable to import NHunspell.dll using ctypes in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-06-25 08:07 +0100
Re: Unable to import NHunspell.dll using ctypes in Python akshay.ksth@gmail.com - 2013-06-25 00:32 -0700
Re: Unable to import NHunspell.dll using ctypes in Python Dave Angel <davea@davea.name> - 2013-06-25 03:45 -0400
Re: Unable to import NHunspell.dll using ctypes in Python Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-06-25 09:54 +0200
Re: Unable to import NHunspell.dll using ctypes in Python Dave Angel <davea@davea.name> - 2013-06-25 09:55 -0400
Re: Unable to import NHunspell.dll using ctypes in Python akshay.ksth@gmail.com - 2013-06-25 00:58 -0700
Re: Unable to import NHunspell.dll using ctypes in Python Dave Angel <davea@davea.name> - 2013-06-25 10:05 -0400
Re: Unable to import NHunspell.dll using ctypes in Python akshay.ksth@gmail.com - 2013-06-25 01:04 -0700
Re: Unable to import NHunspell.dll using ctypes in Python Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-06-25 10:32 +0200
Re: Unable to import NHunspell.dll using ctypes in Python akshay.ksth@gmail.com - 2013-06-25 07:52 -0700
csiph-web