Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2013 17:08:19 +0200
From:      Torfinn Ingolfsen <tingox@gmail.com>
To:        FreeBSD Ports ML <freebsd-ports@freebsd.org>, koobs@FreeBSD.org
Subject:   Spambayes 1.1b1 - training errors
Message-ID:  <CAJ_iqtY7VhSxhwfrqDFtVMfLW_OhOz26mrALi60Qdhj-0o49nQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ_iqtY7VhSxhwfrqDFtVMfLW_OhOz26mrALi60Qdhj-0o49nQ>