[wxPython-mac] Problems with wx.Process & wx.Execute

Kevin Ollivier kevino at theolliviers.com
Wed Mar 12 09:07:51 PDT 2008


Hi John,

I'm not sure what's going on with wxProcess, but have you tried  
working with the Python classes for launching new processes? I think a  
lot of people use the built in Python modules (I know I do...), which  
could be why we haven't come across this before.

Regards,

Kevin

On Mar 11, 2008, at 5:26 PM, John Jackson wrote:

> I ran the same code under Windows, and it worked fine. (Well, at  
> least as fine as VirtualPC works...) So, it's a Mac problem...
>
> On Mar 11, 2008, at 12:08 PM, John Jackson wrote:
>
>> I've been trying to use wx.Process to launch a Django from a  
>> wxPython application with no luck.
>>
>> What I see in my log are messages such as
>>
>> 11:36:46: Starting server with command:
>> /Library/Frameworks/Python.framework/Versions/Current/bin/python ~/ 
>> Source/Mine/DjangoTest/mysite/manage.py runserver
>> 11:36:46: Debug: wxMacExecute Bad bundle: /Library/Frameworks/ 
>> Python.framework/Versions/Current/bin/python
>> 11:36:46: Debug: pid=22933
>> 11:36:46: Debug: Successfully added notification to the runloop
>> 11:36:46: DjangoStarter: serverPID "22933" started.
>> 11:36:46: Debug: Process ended
>>
>> I'm also sometimes seeing GetOutputStream() returning a stream, and  
>> sometimes not, even when Exists() is False.
>>
>> Googling "wxMacExecute Bad bundle" returns some hits, but nothing  
>> that helped. There was a request by Robin for a sample,  
>> application, but none seemed to be offered.
>>
>> So, see below for a sample application. You'll need to have Django  
>> installed, and then either modify the command to point to a site,  
>> or use the "Set Server Command" button to do the same.
>>
>> I'm going to try this under Windows and see if the same results  
>> happen.
>
>
> ______________
> John Jackson
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-mac-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-mac-help at lists.wxwidgets.org
>





More information about the wxpython-mac mailing list