Try changing this:
if os.name == "posix":
import signal
# Set SIGHUP to reload the config file & close & open debug file
signal.signal(signal.SIGHUP, SIGHUPstuff)
# Load some scripts for PID and daemonising
from twisted.scripts import _twistd_unix as twistd
to this:
if os.name == "posix":
import signal
# Set SIGHUP to reload the config file & close & open debug file
signal.signal(signal.SIGHUP, SIGHUPstuff)
# Load some scripts for PID and daemonising
try:
from twisted.scripts import _twistd_unix as twistd
except:
from twisted.scripts import twistd
Cheers,
Gonzalo
Florian Jensen wrote:
> Hi,
>
> I am having a problem with starting PyMSNt 0.11.2. On Ubuntu 6.10 it
> works just fine. On 7.04 I constantly get this error.
>
> [EMAIL PROTECTED]:~/transports/pymsnt-0.11.2$ python PyMSNt.py
> Traceback (most recent call last):
> File "PyMSNt.py", line 14, in <module>
> main.main()
> File "/home/jabber/transports/pymsnt-0.11.2/src/main.py", line 398,
> in main
> app = App()
> File "/home/jabber/transports/pymsnt-0.11.2/src/main.py", line 335,
> in __init__
> twistd.checkPID(config.pid)
> AttributeError: 'module' object has no attribute 'checkPID'
> [EMAIL PROTECTED]:~/transports/pymsnt-0.11.2$
>
> Any idea what might be wrong?
>
> Greets,
>
> Florian
_______________________________________________
py-transports mailing list
[email protected]
http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports
_______________________________________________
py-transports mailing list
[email protected]
http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports