[Pythonmac-SIG] PyQt 3.8.1 on MacOS X 10.1 hobbles

Bob Ippolito bob at redivi.com
Mon Nov 10 07:22:23 EST 2003


On Nov 10, 2003, at 6:32 AM, Markus Biermaier wrote:

> Am Montag den, 10. November 2003, um 11:46, schrieb Jack Jansen:
>
>> On 9 Nov 2003, at 14:06, Markus Biermaier wrote:
>>> I think PyQt for the Mac is not yet official supported. Also Sip is 
>>> pre-release (pre3). I contacted Phil Thompson the person behind PyQt 
>>> (I think) with this problem and he told me only to ask the list.
>>> I forgot to mention that I use Python-2.3.2.
>>>
>>>> If you don't run a python script from an executable bundle, it 
>>>> won't be able to do GUI stuff (unless it calls undocumented private 
>>>> Apple APIs), so that may have something to do with the problem 
>>>> you're seeing.  You might have a pythonw script that will do this, 
>>>> but you don't mention which version of Python you are using.
>>>
>>> I find it cool to call a python script simply with "open *.py" from 
>>> the shell. It DOES GUI stuff. I think the "open" program is a clever 
>>> Apple program and does perhaps "undocumented private Apple APIs"!?
>>
>> If you need more help from the mailing list then you should probably 
>> post the full stacktrace, plus the output of the build process of 
>> PyQt (since it'll allow us to inspect the linker flags used). But 
>> again, unless you move to at least 10.2 few people here will be able 
>> to reproduce what you do.
>
> Traceback (most recent call last):
>   File "aclock.py", line 5, in ?
>     from qt import *
> RuntimeError: Attempt to create a Python instance for a NULL pointer

This does not happen with my PyQt on OS X 10.3 ( http://bob.pycs.net/ 
).  But mine is compiled static, so maybe that's why?

> Qt: QApplication: Warning argv[0] == 'aclock.py' is relative.
> In order to dispatch events correctly Mac OS X may require 
> applications to be run with the *full* path to the executable.

This warning is actually spurious, this obviously isn't the actual 
argv[0]

I'm not sure what the paste of the thread stuff has to do with 
anything?  Did you compile Qt with or without threads?

This is not to say that PyQt works fine though, because it doesn't.  It 
has several crashing bugs with the examples (but the clock example 
works fine for me)  that I didn't really research because this stuff 
just takes WAY TOO LONG to build.

-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20031110/1492f6af/smime.bin


More information about the Pythonmac-SIG mailing list