Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49139
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-06-25 01:04 -0700 |
| References | <23e633db-afbe-4edc-9291-5a9e242e86d0@googlegroups.com> |
| Message-ID | <947df083-7586-4127-9f48-6d9367cf43ae@googlegroups.com> (permalink) |
| Subject | Re: Unable to import NHunspell.dll using ctypes in Python |
| From | akshay.ksth@gmail.com |
On Tuesday, June 25, 2013 12:08:17 PM UTC+5:45, aksha...@gmail.com wrote: > Im required to import ha certain dll called 'NHunspell.dll' which is used for Spell Checking purposes. I am using Python for the software. Although I checked out several websites to properly use ctypes, I have been unable to load the dll properly. > > > > When I use this code. > > > > from ctypes import * > > hunspell = cdll.LoadLibrary['Hunspellx64.dll'] > > > > I get an error > > > > hunspell = cdll.LoadLibrary['Hunspellx64.dll'] > > TypeError: 'instancemethod' object has no attribute '__getitem__' > > > > I guess it might a problem with the structure of the dll. But I have no idea how to import the dll properly. @Chris I understand that. But then I am supposed to create something that works on a Windows environment using a Windows Dll.Aaandd Im stuck.
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