Package: pymsnt
Version: 0.11.3-5
Severity: grave
Tags: patch
Justification: renders package unusable
While upgrading the pymsnt package, dpkg bails out in the pre-removal script:
dpkg: error processing pymsnt_0.11.3-5.1_all.deb (--install):
subprocess new pre-removal script returned error exit status 1
Starting MSN transport for Jabber: Traceback (most recent call last):
File "/usr/share/pymsnt/PyMSNt.py", line 14, in <module>
main.main()
File "/usr/share/pymsnt/src/main.py", line 390, in main
app = App()
File "/usr/share/pymsnt/src/main.py", line 331, in __init__
twistd.daemonize()
TypeError: daemonize() takes exactly 2 arguments (0 given)
invoke-rc.d: initscript pymsnt, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
pymsnt_0.11.3-5.1_all.deb
The problem seems to be in line 331 of /usr/share/pymsnt/src/main.py:
twistd.daemonize()
Changing it to:
twistd.daemonize(reactor, os)
seems to make it start up.
- Michel
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (500, 'oldstable')
Architecture: i386 (i686)
Kernel: Linux 3.9-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages pymsnt depends on:
ii adduser 3.113+nmu3
ii python 2.7.5-2
ii python-central 0.6.17
ii python-crypto 2.6-5
ii python-openssl 0.13-2+b1
ii python-twisted 13.0.0-1
Versions of packages pymsnt recommends:
ii python-imaging 1.1.7-4
Versions of packages pymsnt suggests:
ii ejabberd 2.1.10-5
-- Configuration Files:
/etc/pymsnt.conf.xml changed [not included]
-- no debconf information
--- src/main.py 2013-07-19 10:02:34.000000000 +0200
+++ src/main.py 2013-07-19 10:02:50.000000000 +0200
@@ -328,7 +328,7 @@
# Daemonise the process and write the PID file
if config.background and os.name == "posix":
- twistd.daemonize()
+ twistd.daemonize(reactor, os)
if config.pid:
self.writePID()