[spambayes-bugs] [ spambayes-Bugs-765256 ] train does not work

SourceForge.net noreply at sourceforge.net
Mon Jul 7 14:00:47 EDT 2003


Bugs item #765256, was opened at 2003-07-03 13:37
Message generated for change (Comment added) made by tvrs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=765256&group_id=61702

Category: Outlook
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: hans mueller (modifier)
Assigned to: Mark Hammond (mhammond)
Summary: train does not work

Initial Comment:
hi,
after choosing the right directories in the "train now" 
form, an pressing the train button nothing happens... 
german outlook xp!
modi

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

Comment By: Thomas Verschuren (tvrs)
Date: 2003-07-07 22:00

Message:
Logged In: YES 
user_id=810345

Same problem here, dutch outlook XP...

Logfile show the following:

Loaded bayes database from 'C:\Documents and
Settings\ThomasV\Application
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and
Settings\ThomasV\Application
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 0 spam and 0 good messages
SpamBayes Outlook Addin Beta1, version 0.3 (July 2003)
starting (with engine SpamBayes Beta1, version 0.1 (May
2003))...
warning: raising a string exception is deprecated
warning: raising a string exception is deprecated
Saving configuration -> C:\Documents and
Settings\ThomasV\Application Data\SpamBayes\Outlook.ini
Traceback (most recent call last):
  File "out1.pyz/dialogs.AsyncDialog", line 144, in OnStart
  File "out1.pyz/dialogs.TrainingDialog", line 127, in
StartProcess
  File "out1.pyz/dialogs.AsyncDialog", line 174, in StartProcess
  File "out1.pyz/dialogs.AsyncDialog", line 36, in __init__
  File "out1.pyz/dialogs.AsyncDialog", line 45, in set_stages
AssertionError: Proportions must add to 1.0
win32ui: Error in Command Message handler for command ID
1100, Code 0

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

Comment By: Gottfried Ganßauge (ganssauge)
Date: 2003-07-07 18:09

Message:
Logged In: YES 
user_id=792746

I could verify the behaviour which indeed is quite strange.
When starting the training session the progress bar is set up 
by calling Progress.set_stages in dialogs/AsyncDialog.py.
There the assertion in the last line fires because start_pos - 
1.0 is not less than 0.001.
After a fair bit of trying I came to the conclusion that floating 
point literals within the python source text are not correctly 
parsed.
It was possible to verify that by asserting 1.0 == float(1).
VERY STRANGE INDEED.
Changing the locale didn't help at all.
I could avoid that particular error by generating floating point 
constants using the float() builtin.
For example I defined 0.001 as (float(1) / float(1000)).

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

Comment By: Philippe Cloutier (chealer)
Date: 2003-07-05 00:41

Message:
Logged In: YES 
user_id=738765

Topic similar to 765912.

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

Comment By: Tony Meyer (anadelonbrin)
Date: 2003-07-04 05:43

Message:
Logged In: YES 
user_id=552329

There are some issues with Outlook with non-English locales.  
We have made some movement towards fixing these, but a 
definitive fix has eluded us so far.

If you could attach your log file to this tracker, that would 
certainly help.  Instructions about how to find it are in the 
troubleshooting.html file (which you can get to via 
the "about.html" file from the main manager dialog).

Also - are you using the 003 or 002 binary, or source?  If you 
are using the 002 binary, please check to see if this still 
happens with the 003 release, and attach the log file from 
that execution if it does.

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

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



More information about the Spambayes-bugs mailing list