Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
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

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Mark Lawrence
On 25/06/2013 07:23, akshay.k...@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

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
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

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Dave Angel
On 06/25/2013 03:32 AM, akshay.k...@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 =

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Chris “Kwpolska” Warrick
On Tue, Jun 25, 2013 at 9:45 AM, Dave Angel da...@davea.name wrote: You're on Linux or similar, and dll's are the way a Windows executable is named. dll’s are libraries for windows, not executables (/lib not /bin) Try going back to where you downloaded this file, and see if you can get the

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
Thanks Dave. I'm using Python 2.7 and am working on Linux Mint. Does it mean that I cant load the functions within the dll whilst on Linux. I thought that was what ctypes was used for. Please correct me if I misunderstood what you meant. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
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

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Chris “Kwpolska” Warrick
On Tue, Jun 25, 2013 at 10:04 AM, akshay.k...@gmail.com wrote: @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. -- http://mail.python.org/mailman/listinfo/python-list Then you need to get your

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Dave Angel
On 06/25/2013 03:54 AM, Chris “Kwpolska” Warrick wrote: On Tue, Jun 25, 2013 at 9:45 AM, Dave Angel da...@davea.name wrote: You're on Linux or similar, and dll's are the way a Windows executable is named. dll’s are libraries for windows, not executables (/lib not /bin) Try going back to

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Dave Angel
On 06/25/2013 03:58 AM, akshay.k...@gmail.com wrote: Thanks Dave. I'm using Python 2.7 and am working on Linux Mint. Does it mean that I cant load the functions within the dll whilst on Linux. I thought that was what ctypes was used for. Please correct me if I misunderstood what you meant.

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread akshay . ksth
Thanks everyone. But it still did not work. I instead used a Python wrapper for Hunspell called Pyhunspell. The actual link in PyPi does not work for Python 2.7 but it has been improved and upgraded in [here](https://github.com/akshaylb/nepali-spellchecker-v2/tree/master/pyhunspell). --