[spambayes-bugs] [ spambayes-Bugs-1022848 ] sb_dbexpimp.py crashes
while importing into pickle file
SourceForge.net
noreply at sourceforge.net
Mon Sep 6 04:42:44 CEST 2004
Bugs item #1022848, was opened at 2004-09-05 19:31
Message generated for change (Comment added) made by davidhandy
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1022848&group_id=61702
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David R. Handy (davidhandy)
Assigned to: Nobody/Anonymous (nobody)
Summary: sb_dbexpimp.py crashes while importing into pickle file
Initial Comment:
I attempted to convert my spambayes database from db to pickle
format. I was able to export from hammie.db (attached) to
hammie.csv (attached) ok, but when I tried to import hammie.csv
into hammie.dat in pickle format, I got the following messages
and traceback:
david at arno2:/mnt/disk1/spambayes$ sb_dbexpimp.py -i -p
hammie.dat -f hammie.csv
Importing file hammie.csv into database hammie.dat
Storing database, please be patient. Even moderately sized
databases may take a very long time to store.
Finished storing database
Traceback (most recent call last):
File "/home/david/bin/sb_dbexpimp.py", line 281, in ?
runImport(dbFN, useDBM, newDBM, flatFN)
File "/home/david/bin/sb_dbexpimp.py", line 233, in runImport
words = bayes.db.keys()
AttributeError: PickledClassifier instance has no attribute 'db'
It does produce a hammie.dat (attached) but the error message
makes me not trust that it is complete and uncorrupted.
----------------------------------------------------------------------
>Comment By: David R. Handy (davidhandy)
Date: 2004-09-05 19:42
Message:
Logged In: YES
user_id=171902
Attempting to upload hammie.db resulted in an error message that said
"Invalid filename."
Attempting to upload hammie.csv resulted in an error message that
said:
File Upload: ArtifactFile: File must be > 20 bytes and < 256000 bytes
in length
So I will attempt to cut down the csv file and see if I can still reproduce
the problem, then upload the smaller file.
----------------------------------------------------------------------
Comment By: David R. Handy (davidhandy)
Date: 2004-09-05 19:35
Message:
Logged In: YES
user_id=171902
Ok, my first attempt to attach files to this bug report failed. I'll try
again, if sourceforge will let me.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1022848&group_id=61702
More information about the Spambayes-bugs
mailing list