Re: [Twisted-Python] More daemonize() / OSX API / USING_FORK_WITHOUT_EXEC_etc.

2010-11-06 Thread Erik van Blokland
On Nov 5, 2010, at 11:46 PM, Erik van Blokland wrote: > Any clues to why pkg_resources would cause Carbon to load on one machine, but > not on another? > Any clues to prevent it these modules from loading? FWIW, I found a workaround. The remote machine had setuptools-0.6c11-py2.6.

[Twisted-Python] More daemonize() / OSX API / USING_FORK_WITHOUT_EXEC_etc.

2010-11-05 Thread Erik van Blokland
Hi, A while back on Oct 13, 2010, at 7:20 PM, James Y Knight wrote: > You need to avoid using or importing any OSX APIs until after the > daemonization has occurred. Unfortunately, twisted executes the entire script > file before daemonizing. [that's unfortunate for other reasons besides this,

Re: [Twisted-Python] _twistd_unix.py / daemonize() / OSX / USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

2010-10-13 Thread Erik van Blokland
James, On Oct 13, 2010, at 7:20 PM, James Y Knight wrote: > You need to avoid using or importing any OSX APIs until after the > daemonization has occurred. Unfortunately, twisted executes the entire script > file before daemonizing. [that's unfortunate for other reasons besides this, > too] >

Re: [Twisted-Python] _twistd_unix.py / daemonize() / OSX / USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

2010-10-13 Thread Erik van Blokland
On Oct 13, 2010, at 5:55 PM, Phil Mayers wrote: > Ah; apparently: > > http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/Multithreading/AboutThreads/AboutThreads.html > > """using the fork function [...] Applications that depend on the Core > Foundation, Cocoa, or Core Data

[Twisted-Python] _twistd_unix.py / daemonize() / OSX / USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

2010-10-13 Thread Erik van Blokland
os.dup2(null, i) except OSError, e: if e.errno != errno.EBADF: raise os.close(null) Thanks, Erik van Blokland ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin

[Twisted-Python] Help installing twisted rev 27662, OSX10.6, Python 2.6.4

2009-12-03 Thread Erik van Blokland
Hullo, I'm trying to get the current svn version of twisted to run on a current python 2.6.4 (not the stock python, a newer one) on Mac OSX 10.6. > In file included from > /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/unicodeobject.h:4, > from > /Library/