[Spambayes] hammie's dbm file has changed

Ranieri J D Severiano rjdsnet@yahoo.com
Thu Nov 7 19:22:34 2002


Hi,
my last CVS syncronization has generated the attached CVS/Entries.
These are the upgrades:
	hammie.py:    1.29 -> 1.35 -> 1.38
	hammiesrc.py: 1.9  -> 1.10

When I execute any program which try to access the pickle-DB, I
get this exception:


ranieri@uyrapuru:spambayes$ ./hammie.py -s ~/Mail/bulkmail
Traceback (most recent call last):
  File "./hammie.py", line 497, in ?
    main()
  File "./hammie.py", line 459, in main
    bayes = createbayes(pck, usedb, mode)
  File "./hammie.py", line 401, in createbayes
    bayes = pickle.load(fp)
  File "/usr/lib/python2.2/copy_reg.py", line 40, in _reconstructor
    obj = base.__new__(cls, state)
TypeError: ('object.__new__(X): X is not a type object (class)', <function _reconstructor at 0x8148cd4>, (<class classifier.Bayes at 0x82103b4>, <type 'object'>, None))
ranieri@uyrapuru:spambayes$ python2.2
Python 2.2.1 (#1, Sep  7 2002, 14:34:30) 
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from cPickle import load
>>> f = open('hammie.db')
>>> o = load(f)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/copy_reg.py", line 40, in _reconstructor
    obj = base.__new__(cls, state)
TypeError: ('object.__new__(X): X is not a type object (class)', <function _reconstructor at 0x8148b64>, (<class classifier.Bayes at 0x81ad6cc>, <type 'object'>, None))
>>>
ranieri@uyrapuru:spambayes$



I believe pickle-DB file format has changed too.


Thanks,
Ranieri


> 
> From: "Neale Pickett" <neale@woozle.org>
> Date: Sun, 17 Nov 2002 03:49:26
> Subject: [Spambayes] hammie's dbm file has changed
> 
> I just want to make sure everyone is aware that hammie.py's dbm file
> format has changed now.  I sent a message out about it two days ago and
> didn't get any responses, so it's in now.
> 

-------------- next part --------------
/.cvsignore/1.3/Fri Sep 20 15:24:54 2002//
/HistToGNU.py/1.7/Fri Oct  4 03:01:29 2002//
/LICENSE.txt/1.1/Sun Sep 22 04:59:54 2002//
/TESTING.txt/1.1/Thu Sep  5 20:55:02 2002//
/cdb.py/1.4/Mon Sep 23 21:20:10 2002//
/cleanarch/1.1/Thu Sep  5 16:16:43 2002//
/cmp.py/1.17/Thu Sep 26 03:20:51 2002//
/fpfn.py/1.1/Wed Sep 25 01:01:49 2002//
/heapq.py/1.1/Sun Sep 22 06:58:36 2002//
/loosecksum.py/1.3/Mon Sep 23 21:20:10 2002//
/neilfilter.py/1.4/Wed Oct  2 16:05:27 2002//
/rates.py/1.7/Wed Sep 25 02:22:15 2002//
D/Outlook2000////
D/email////
/hammiecli.py/1.2/Sun Oct 27 05:13:54 2002//
/runtest.sh/1.9/Mon Nov  4 01:10:38 2002//
/setup.py/1.9/Mon Nov  4 01:10:38 2002//
/timtest.py/1.30/Mon Nov  4 01:10:39 2002//
/unheader.py/1.8/Mon Nov  4 01:10:44 2002//
/Histogram.py/1.7/Wed Nov  6 20:23:44 2002//
/INTEGRATION.txt/1.2/Wed Nov  6 20:23:44 2002//
/Options.py/1.70/Wed Nov  6 20:23:47 2002//
/README.txt/1.42/Wed Nov  6 20:23:48 2002//
/TestDriver.py/1.28/Wed Nov  6 20:23:49 2002//
/Tester.py/1.8/Wed Nov  6 20:23:49 2002//
/chi2.py/1.8/Wed Nov  6 20:23:50 2002//
/classifier.py/1.50/Wed Nov  6 20:23:52 2002//
/hammie.py/1.38/Result of merge//
/hammiesrv.py/1.10/Result of merge//
/mboxcount.py/1.3/Wed Nov  6 20:23:53 2002//
/mboxtest.py/1.10/Wed Nov  6 20:23:54 2002//
/mboxutils.py/1.6/Wed Nov  6 20:23:54 2002//
/msgs.py/1.6/Wed Nov  6 20:23:54 2002//
/neiltrain.py/1.4/Wed Nov  6 20:23:55 2002//
/optimize.py/1.2/Sun Nov 10 19:59:22 2002//
/pop3proxy.py/1.15/Wed Nov  6 20:23:59 2002//
/rebal.py/1.9/Wed Nov  6 20:24:00 2002//
/sets.py/1.2/Wed Nov  6 20:24:01 2002//
/split.py/1.2/Wed Nov  6 20:24:01 2002//
/splitn.py/1.4/Wed Nov  6 20:24:01 2002//
/splitndirs.py/1.7/Wed Nov  6 20:24:01 2002//
/table.py/1.5/Wed Nov  6 20:24:02 2002//
/timcv.py/1.12/Wed Nov  6 20:24:02 2002//
/tokenizer.py/1.68/Wed Nov  6 20:24:07 2002//
/weakloop.py/1.2/Mon Nov 11 01:59:06 2002//
/weaktest.py/1.3/Sun Nov 10 19:59:22 2002//


More information about the Spambayes mailing list