From owner-freebsd-ports@FreeBSD.ORG Wed Jul 24 15:08:22 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 49B60B04; Wed, 24 Jul 2013 15:08:22 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B1AAA247F; Wed, 24 Jul 2013 15:08:21 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id c10so5251916wiw.4 for ; Wed, 24 Jul 2013 08:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=gFxLd1L4lT48totsbVtsaLP/oflgsS2Kz4CFMXjoPUk=; b=N0XUX4W8cp1dRZXNLhnqUSBh4QgHw+J3Ieoz0z3vUyuaypRAwHxcDaUz8tQY8EjcYG AcST7ksXkjXwWLkgDjdBffov3kkQiPpetcwISWbk5ExzigttQ+OkHDwJKeQLyeTT05e/ kr5D7/9dsy9iYP/ZePuifFdz6HRueKtZkzMWIw9E5rcAevSQUtsowMiHjtZYJy5W5qAa y1mp1e0iW6Zh3DLc1yHWvliGdc1IbHvSx5A+evRGCKA7lbbT7sVmZOYmKbEbtwyle69O TEnYC+hluSuCqoZR4vsuZc3gfFK83yBjC93b2ZMDInUcG00U4wS5MoZPVezSgNB4Jxbi YQ1Q== MIME-Version: 1.0 X-Received: by 10.194.133.106 with SMTP id pb10mr26946027wjb.62.1374678499830; Wed, 24 Jul 2013 08:08:19 -0700 (PDT) Received: by 10.216.170.71 with HTTP; Wed, 24 Jul 2013 08:08:19 -0700 (PDT) Date: Wed, 24 Jul 2013 17:08:19 +0200 Message-ID: Subject: Spambayes 1.1b1 - training errors From: Torfinn Ingolfsen To: FreeBSD Ports ML , koobs@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2013 15:08:22 -0000 I just upgraded mail/py-spambayes to version 1.1b1. When I train (from the web interface) I sometimes gets errors like this: --- cut --- Training... 500 Server error Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/spambayes-1.1b1-py2.7.egg/spambayes/Dibbler.py", line 477, in found_terminator getattr(plugin, name)(**params) File "/usr/local/lib/python2.7/site-packages/spambayes-1.1b1-py2.7.egg/spambayes/ProxyUI.py", line 287, in onReview stats_as_ham, old_class=old_class) File "/usr/local/lib/python2.7/site-packages/spambayes-1.1b1-py2.7.egg/spambayes/Stats.py", line 127, in RecordTraining self.messageinfo_db.set_persistent_statistics(self.totals) File "/usr/local/lib/python2.7/site-packages/spambayes-1.1b1-py2.7.egg/spambayes/message.py", line 135, in set_persistent_statistics self.db[STATS_STORAGE_KEY] = stats File "/usr/local/lib/python2.7/shelve.py", line 133, in __setitem__ self.dict[key] = f.getvalue() File "/usr/local/lib/python2.7/shelve.py", line 79, in closed raise ValueError('invalid operation on closed shelf') ValueError: invalid operation on closed shelf --- cut --- The only other reference I found is this: http://marc.info/?l=spambayes&m=133345864207233 As described in that posting, doing # service pyspamd restart makes the training work again. Is this problem known, or should I file a PR? Details of my system: tingo@kg-v2$ uname -a FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012 root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 root@kg-v2# portversion -v *spam* py27-spambayes-1.1b1 = up-to-date with port -- Regards, Torfinn Ingolfsen