Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-16 Thread Jarkko Laiho
On Sun, Mar 15, 2009 at 9:13 PM, Bill Janssen wrote: > You need to do an "exec" after doing a "fork".  /usr/bin/python on OS X > is a "framework build", and some (most?) of the OS X frameworks just > don't work after doing a fork.  You have to restart with an "exec". All right, but how is this do

Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-16 Thread Bill Janssen
Jarkko Laiho wrote: > On Sun, Mar 15, 2009 at 9:13 PM, Bill Janssen wrote: > > You need to do an "exec" after doing a "fork".  /usr/bin/python on OS X > > is a "framework build", and some (most?) of the OS X frameworks just > > don't work after doing a fork.  You have to restart with an "exec".

Re: [Pythonmac-SIG] How to use pythonw on Mac OS X

2009-03-16 Thread Christopher Barker
Samantha Bess wrote: I'm hoping you can help me. I recently purchased a screensaver called Paper Pilots. When I tried to install it, a message popped up that said, "This program needs access to the screen. Please run with 'pythonw',". This is no longer required for recent versions of Python

Re: [Pythonmac-SIG] Python PyGame GTK SQLAlchemy on Leopard

2009-03-16 Thread Christopher Barker
Chris Van Bael wrote: I want to port an application that runs on Linux and Windows perfectly to OSX. We use Python 2.5, PyGame, PyGTK and SQLAlchemy for it. Now I have a system with Leopard on it, but want to make sure what would be the best solution to get these dependencies installed on it. I r

Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-16 Thread Jarkko Laiho
>> http://code.activestate.com/recipes/278731/ > So, that recipe is inadequate on OS X -- you pretty much have to do an > exec after the fork.  Doesn't matter which of the exec functions you > use -- use the most convenient one.  What you're trying to accomplish > is re-initialization of some of th

Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-16 Thread Bill Janssen
Jarkko Laiho wrote: > So ultimately the question is: how should the forking code in the > recipe be modified, so that it satisfies the requirements of OS X? > What does an actual, concrete exec() call look like in this case, and > at what point in the code should it occur? I don't know -- you di

Re: [Pythonmac-SIG] urllib2.urlopen fails in a forked daemon with a CoreFoundation error

2009-03-16 Thread Jarkko Laiho
>> What does an actual, concrete exec() call look like in this case, and >> at what point in the code should it occur? > I don't know -- you didn't post your entire program.  Read the Wikipedia > page and follow the refs. I did and understood just about none of it. Way over my head. But: > Here's

Re: [Pythonmac-SIG] Python PyGame GTK SQLAlchemy on Leopard

2009-03-16 Thread Christopher Barker
(make sure to reply to the list, for the archives...) Chris Van Bael wrote: Yes, I absolutely do want to buil binaries that can run on 10.3.9 and 10.4! This is very important. Then you want the python.org python. Do you have the paths for the system python and the installation from python.