[PyQt] No reply - did I post wrong?

Phil Thompson phil at riverbankcomputing.com
Sun Mar 16 00:57:32 GMT 2008


On Saturday 15 March 2008, Peter Howard wrote:
> I posted a question on Wednesday - but have had no reply as yet.
>
> Am I using the list wrongly in some way?

http://www.catb.org/~esr/faqs/smart-questions.html

> My message subject was "PyQt4 'apparently' interfering with
> ctypes.cdll.LoadLibrary()"
>
> I've condensed the problem to a 3 line program:
>
> import PyQt4.QtCore
> import ctypes
> ctypes.cdll.LoadLibrary('libfluidsynth-1.dll')

That's not a 3 line program. Nobody can reproduce the problem unless you 
provide the DLL (and hopefully its source code).

> As you will deduce this is running on Windows. It produces the traceback I
> put in Wednesday's post.
>
> The reason I'm raising it here - is 1) because I'm stuck :-), and 2)More
> relevantly, if you don't import from PyQt first it works completely fine -
> including more extensive use of the dll via ctypes.
>
> I was working up the use of the dll with unit tests without any problems -
> until I started integrating it with existing - tried and tested PyQt code.
>
> Both of these bodies of code continue to work happily in isolation.
>
> I realise you can't take any responsibility or interest in why ctypes is
> going wrong or what might be wrong with the dll in question - but I was
> hoping your experience might provide some insight.
>
> By the way I also tried SIP-ing an interface to the dll, but the C
> interface is quite complicated using large numbers of header files, and I
> got a bit bogged down. Since I only need a few trivial-ish interfaces into
> the dll, the ctypes approach looked like the best bet.
>
> Regards
>
> Pete (the one you know from Airbus - Phil)

It's no good name dropping, you have to give me money as well ;)

Phil


More information about the PyQt mailing list