Questions regarding the daemon module.

David Lambert dave at
Sat Jan 28 08:54:31 EST 2012

I was looking for a simple way to daemonize a Python process, and found:

I used easy_install to add this package (I thought), but when I 
attempted to use the example in the above link, I got the error:

AttributeError: 'module' object has no attribute 'DaemonContext'

To my surprise when looking at the module that was installed, I found 
something completely different to what was in the documentation:

 >>> dir(daemon)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', 
'basic_daemonize', 'checkPID', 'daemonize', 'errno', 'os', 'sys', 
 >>> print daemon.__doc__
 >>> print daemon.daemonize.__doc__

Further experimentation with this module yielded a working daemon, but I 
am concerned regarding its parentage and lack of documentation. Could 
someone explain these discrepancies?

Best regards,


More information about the Python-list mailing list