jeudi 4 septembre 2008
Le lancement de la passerelle aim renvoie l’erreur suivante :
# python PyAIMt.py -c pyaimt.conf.xml
Traceback (most recent call last):
File "PyAIMt.py", line 16, in <module>
main.main()
File "/usr/share/pyaimt/src/main.py", line 449, in main
app = App()
File "/usr/share/pyaimt/src/main.py", line 399, in __init__
twistd.checkPID(config.pid)
AttributeError: 'module' object has no attribute 'checkPID'Ouvrir le fichier pyaimt/src/main.py
/usr/share/pyaimt/src/main.py pour ubuntu
trouver le passage :
# Set SIGHUP to reload the config file
if os.name == "posix":
import signal
signal.signal(signal.SIGHUP, reloadConfig)
# Load scripts for PID and daemonizing
from twisted.scripts import twistd(ligne 82 dans mon cas
commenter la ligne from twisted.scripts import twistd
et rajouter :
try:
from twisted.scripts import _twistd_unix as twistd
except:
from twisted.scripts import twistdSauf mention contraire, le site est placé sous double licence Creative Commons BY-SA et GNU Free Documentation License.