[Python-apps-team] Bug#785503: spambayes: /usr/bin/core_server incompatible with python 2.7 (jessie's {current stable} python)

Erik Huelsmann ehuels at gmail.com
Sun May 17 07:04:45 UTC 2015


Package: spambayes
Version: 1.1b1-1
Severity: normal
Tags: patch

Dear Maintainer,


While trying to set up the XML-RPC scoring functionality, I'm running into the
problem that the Dibbler.py file in the package is incompatible with the
asyncore and asynchat changes in Python 2.6 and 2.7. I'm running into this
problem both on Wheezy and on Jessie.

Upstream has corrected this problem on February 25, 2011 in this commit:
   https://sourceforge.net/p/spambayes/code/3271/

The steps to reproduce:

------

 $ mkdir spambayes-config
 $ cd spambayes-config
 $ /usr/bin/core_server -P XMLRPCPlugin
SpamBayes Core Proxy Version 1.1b1 (February, 25, 2011)

User interface url is http://localhost:8880/

-------

Now try to access the URL mentioned while monitoring the system in 'top'. The
server doesn't send a response, but shows a high cpu % in top forever.


The attached patch is another solution; it doesn't duplicate the asyncore and
asynchat modules, but instead removes the code that's incompatible with the
post-2.6 python asyncore and asynchat module versions.


Regards,


Erik.



-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages spambayes depends on:
ii  python           2.7.9-1
ii  python-dns       2.3.6-3
ii  python-lockfile  1:0.8-2

spambayes recommends no packages.

spambayes suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brighterasyncremove.patch
Type: text/x-diff
Size: 2718 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20150517/49eee26f/attachment.patch>


More information about the Python-apps-team mailing list