Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49161

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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'repository': 0.05; 'subject:Python': 0.06; 'url:msdn': 0.07; 'assumed': 0.09; 'executable': 0.09; 'similar,': 0.09; 'subject:using': 0.09; 'terms,': 0.09; 'windows,': 0.09; "wouldn't": 0.14; 'windows': 0.15; "dll's": 0.16; 'dll,': 0.16; "microsoft's": 0.16; 'received:74.208.4.195': 0.16; 'sane': 0.16; 'subject:ctypes': 0.16; 'subject:import': 0.16; 'url:windows': 0.16; 'extensions': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'looked': 0.18; 'file,': 0.19; 'command': 0.22; 'header :User-Agent:1': 0.23; 'certainly': 0.24; 'dll': 0.24; 'necessary.': 0.24; 'sorry,': 0.24; 'equivalent': 0.26; 'first,': 0.26; 'right.': 0.26; 'downloaded': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'chris': 0.29; 'am,': 0.29; 'generally': 0.29; 'unix': 0.29; "doesn't": 0.30; '25,': 0.31; 'commonly': 0.31; 'libraries': 0.31; 'os,': 0.31; 'file': 0.32; 'there.': 0.32; 'linux': 0.33; 'common': 0.35; 'but': 0.35; 'there': 0.35; 'library.': 0.36; 'ubuntu': 0.36; 'entry': 0.36; 'similar': 0.36; 'should': 0.36; 'url:microsoft': 0.37; 'system,': 0.38; 'url:library': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'even': 0.60; 'dave': 0.60; "you're": 0.61; 'back': 0.62; 'skip:\xe2 10': 0.65; 'talking': 0.65; 'between': 0.67; 'received:74.208': 0.68; 'url :en-us': 0.68; '8bit%:43': 0.74; '9:45': 0.84; 'dozens': 0.84; 'subject:skip:N 10': 0.84; 'angel': 0.91; 'reside': 0.91; '2013': 0.98
Date Tue, 25 Jun 2013 09:55:26 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6
MIME-Version 1.0
To python-list@python.org
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> <51C94AA6.9060704@davea.name> <CAMw+j7+Cv95NOS-h_xosB3CPNd7wnSbkWTUdx33LZ-=4HgHX+w@mail.gmail.com>
In-Reply-To <CAMw+j7+Cv95NOS-h_xosB3CPNd7wnSbkWTUdx33LZ-=4HgHX+w@mail.gmail.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Provags-ID V02:K0:qdzGUDKkKS0abokyt8TGuE3a5fWEzMnNFpfMMgfvV/p tdbFOi2G8s6yE2bFDQoYrvzgKjq8EAy6eaAcWoHKLAbzyuRrBh bXK5Ozp014Ksc2Q42ZxE9tScwEqKX6CnFsvADjy4G6g4XOlnUh /cE1jCdZsy3PRUPmmy2brk4fQLDetEM0OM/9kPpW9jSynWvrUy NQtSA8fG0PWYIoFatgFEs8LsIRqyV4aX18AaFU0CNTrthmBU/m K9prEZFEYcLU2clrwetKFK9gOnxLwr1TYG4k2spSIlio8M68Su pf47XY5UStC1tRRkK+0pnUYEzaHmkxriBqWSVhYljDT+SlbD7B daLhdHCN6acPlDwVqNrk=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3830.1372168539.3114.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372168539 news.xs4all.nl 15902 [2001:888:2000:d::a6]:44402
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49161

Show key headers only | View raw


On 06/25/2013 03:54 AM, Chris “Kwpolska” Warrick wrote:
> On Tue, Jun 25, 2013 at 9:45 AM, Dave Angel <davea@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
>> one for your OS.
>
> That is not necessary.  Because it is a sane OS, it is likely that
> hunspell is packaged in the repositories of OP’s system, and might be
> even installed there.  And if the package is installed, hunspell
> should reside in /usr/lib/libhunspell.so or a similar place.

Sorry, since I was talking about a DLL, I used Microsoft's terminology. 
  Certainly in Unix terms, a DLL is roughly equivalent to a shared library.

DLL is one of the dozens of file extensions commonly used for Microsoft 
executables, or PE files.  Microsoft doesn't generally make the 
distinction between an executable which can be called from the command 
line and one which can only be used with LoadLibraryEx().  In common 
use, only the "main" executable of a program will have an entry point, 
but both common types may be used for library code.

http://msdn.microsoft.com/en-us/library/windows/hardware/gg463119.aspx


As for finding it in the repository, you're certainly right.  I had 
naiively assumed that the OP would have looked there first, and wouldn't 
be in this state if it were in the repository (eg. Synaptic).  It is in 
Ubuntu 12.04.




-- 
DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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