[spambayes-bugs] [ spambayes-Bugs-787296 ] Local installation problem: hammiefilter_persistent_storage

SourceForge.net noreply at sourceforge.net
Wed Aug 13 16:47:06 EDT 2003


Bugs item #787296, was opened at 2003-08-12 21:55
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=787296&group_id=61702

Category: hammie
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Volker Stolz (volkersf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Local installation problem: hammiefilter_persistent_storage

Initial Comment:
I have a local python 2.3 installation into $HOME/Linux and setup.py installed everything in the correct places (~/Linux/bin ~/Linux/lib/..python../site-packages/..), but when I run 'hammie.py' to train, I get:

Mail at atlas [11:53:46]> hammie.py
Traceback (most recent call last):
  File "/home/stolz/Linux/bin/hammie.py", line 4, in ?
    import spambayes.hammiebulk
  File "/home/stolz/Linux/lib/python2.3/site-packages/spambayes/hammiebulk.py", line 62, in ?
    DEFAULTDB = os.path.expanduser(options.hammiefilter_persistent_storage_file)
AttributeError: 'OptionsClass' object has no attribute 'hammiefilter_persistent_storage_file'

A 'regular' /usr/local-setup with Python 2.2 on FreeBSD works fine.

----------------------------------------------------------------------

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-08-14 10:45

Message:
Logged In: YES 
user_id=552329

This is what comes of having too much backwards-
compatibility code all interacting with each other.

I've checked in a fix to cvs for this.

(Technically, the fix should be changing the line to:
DEFAULTDB = os.path.expanduser(options
["Storage", "persistent_storage_file"])
but the below suggestion will also work).

----------------------------------------------------------------------

Comment By: Peter Beckman (ooglek)
Date: 2003-08-14 03:58

Message:
Logged In: YES 
user_id=68540

You can fix this:

Replace this line in hammiebulk.py (line 62):

DEFAULTDB =
os.path.expanduser(options.hammiefilter_persistent_storage_file)

with this line:

DEFAULTDB = os.path.expanduser(options.persistent_storage_file)

That fixed it for me.  I'm not a developer, so I may have
just broke it more, but SB is doing well at the moment, so
it must either have no effect, or I'm right. :-)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=787296&group_id=61702



More information about the Spambayes-bugs mailing list