[spambayes-bugs] [ spambayes-Bugs-765912 ] AssertionError: Proportions must add to 1.0 ...

SourceForge.net noreply at sourceforge.net
Sun Jul 27 01:26:53 EDT 2003


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

Category: Outlook
Group: None
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Andreas Somogyi (somogyia)
Assigned to: Mark Hammond (mhammond)
Summary: AssertionError: Proportions must add to 1.0 ...

Initial Comment:
I upgraded my (working) outlook 2000 + spambayes 
installation to Outlook XP and the newest version of 
Spambayes. Spambayes would not perform any action 
when I had defined "spam" and "ham" folders and chosen 
"Train". It wouldn't matter if I had "rebuild entire 
database" checked or unchecked.

Actions: 
1. Start Outlook.
2. Go to SpamBayes config menu.
3. Click on "Train now"
4. Select "spam" folder.
5. Click on "Train now"

After that, "nothing happens". Clicking on "stop training" 
does not work, but I can close the window by clicking on 
the "[x] in the upper right corner and get back to the 
"main" menu.

I have tried all possible combinations of checkboxes. I 
have also ran "scanpst.exe" on my mailbox file. OS is XP 
Pro (English) 


Here's the log file:




Loaded bayes database from 'C:\Documents and 
Settings\Andreas\Application 
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and 
Settings\Andreas\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
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: Andreas Somogyi (somogyia)
Date: 2003-07-27 07:26

Message:
Logged In: YES 
user_id=815848

Yes, with the bugcatcher installer, it works fine here. Wanna 
see the logfile?

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

Comment By: Andreas Somogyi (somogyia)
Date: 2003-07-27 07:26

Message:
Logged In: YES 
user_id=815848

Yes, with the bugcatcher installer, it works fine here. Wanna 
see the logfile?

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

Comment By: Mark Hammond (mhammond)
Date: 2003-07-25 11:19

Message:
Logged In: YES 
user_id=14198

Success confirmed :)

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

Comment By: Mark Hammond (mhammond)
Date: 2003-07-24 13:31

Message:
Logged In: YES 
user_id=14198

This has us stumped.  I have an instrumented version of the
plugin at
http://starship.python.net/crew/mhammond/downloads/SpamBayes-Outlook-Setup-BugCatcher.exe
- if you are seeing this assertion error, please try this
version and attach a log.

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

Comment By: Andreas Somogyi (somogyia)
Date: 2003-07-22 13:29

Message:
Logged In: YES 
user_id=815848

I installed the latest version of the plugin. Here's the logfile. 
Actions taken: 
1. started outlook
2. Opened "spambayes manager" 
3. clicked "train now"
4. selected "rebuild entire database"
5. selected a "spam" folder (the field was empty)
6. clicked on "train now"
(nothing happened)
7. clicked on the "close window" button.
8. clicked on "train now"
9. deselected "rebuild entire database"
10. clicked "train now" again
(nothing happened)
11. closed the window

Here's the logfile:

Loaded bayes database from 'D:\Documents and 
Settings\Andreas.INSOMNIAC\Application 
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'D:\Documents and 
Settings\Andreas.INSOMNIAC\Application 
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 0 spam and 0 good messages
SpamBayes Outlook Addin (beta), version 0.4 (July 2003) 
starting (with engine SpamBayes Beta2, version 0.2 (July 
2003))...
On Windows version 5.1.2600 (Service Pack 1)
Traceback (most recent call last):
  File "out1.pyz/dialogs.AsyncDialog", line 145, in OnStart
  File "out1.pyz/dialogs.TrainingDialog", line 127, in 
StartProcess
  File "out1.pyz/dialogs.AsyncDialog", line 175, 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 (1,(('', 1.0),))
win32ui: Error in Command Message handler for command ID 
1100, Code 0
Traceback (most recent call last):
  File "out1.pyz/dialogs.AsyncDialog", line 145, in OnStart
  File "out1.pyz/dialogs.TrainingDialog", line 127, in 
StartProcess
  File "out1.pyz/dialogs.AsyncDialog", line 175, 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 (1,(('', 1.0),))
win32ui: Error in Command Message handler for command ID 
1100, Code 0


// Andreas

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

Comment By: Andreas Somogyi (somogyia)
Date: 2003-07-22 13:07

Message:
Logged In: YES 
user_id=815848

I installed the latest version of the plugin. Here's the logfile. 
Actions taken: 
1. started outlook
2. Opened "spambayes manager" 
3. clicked "train now"
4. selected "rebuild entire database"
5. selected a "spam" folder (the field was empty)
6. clicked on "train now"
(nothing happened)
7. clicked on the "close window" button.
8. clicked on "train now"
9. deselected "rebuild entire database"
10. clicked "train now" again
(nothing happened)
11. closed the window

Here's the logfile:

Loaded bayes database from 'D:\Documents and 
Settings\Andreas.INSOMNIAC\Application 
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'D:\Documents and 
Settings\Andreas.INSOMNIAC\Application 
Data\SpamBayes\default_message_database.db'
Bayes database initialized with 0 spam and 0 good messages
SpamBayes Outlook Addin (beta), version 0.4 (July 2003) 
starting (with engine SpamBayes Beta2, version 0.2 (July 
2003))...
On Windows version 5.1.2600 (Service Pack 1)
Traceback (most recent call last):
  File "out1.pyz/dialogs.AsyncDialog", line 145, in OnStart
  File "out1.pyz/dialogs.TrainingDialog", line 127, in 
StartProcess
  File "out1.pyz/dialogs.AsyncDialog", line 175, 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 (1,(('', 1.0),))
win32ui: Error in Command Message handler for command ID 
1100, Code 0
Traceback (most recent call last):
  File "out1.pyz/dialogs.AsyncDialog", line 145, in OnStart
  File "out1.pyz/dialogs.TrainingDialog", line 127, in 
StartProcess
  File "out1.pyz/dialogs.AsyncDialog", line 175, 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 (1,(('', 1.0),))
win32ui: Error in Command Message handler for command ID 
1100, Code 0


// Andreas

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

Comment By: Mark Hammond (mhammond)
Date: 2003-07-21 10:36

Message:
Logged In: YES 
user_id=14198

Please try version 004 of the binary - I expect the same
behavior, but more information in the log!

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

Comment By: Adam Walker (xenogeist)
Date: 2003-07-21 02:14

Message:
Logged In: YES 
user_id=583713

noting dupicate in #774781

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

Comment By: Mark Hammond (mhammond)
Date: 2003-07-20 23:53

Message:
Logged In: YES 
user_id=14198

I just checked in code to help diagnose this - the assertion
prints the items and the sum

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

Comment By: Mark Hammond (mhammond)
Date: 2003-07-09 04:54

Message:
Logged In: YES 
user_id=14198

Good to know English versions also show it.  Anyone able to
 run the source code version?

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

Comment By: Gael Marziou (gmarziou)
Date: 2003-07-08 21:18

Message:
Logged In: YES 
user_id=203211

I ahve exactly the same symptoms on US outlook 2000 on 
windows 2000 pro sp3.

My log file:

Loaded bayes database from 'C:\Documents and 
Settings\marziou\Application 
Data\SpamBayes\default_bayes_database.db'
Loaded message database from 'C:\Documents and 
Settings\marziou\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))...
Creating new SpamBayes toolbar to host our buttons
ERROR: 'You must enable SpamBayes before you can delete 
as spam'
None
warning: raising a string exception is deprecated
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: Philippe Cloutier (chealer)
Date: 2003-07-04 22:40

Message:
Logged In: YES 
user_id=738765

GOD!
I had the exact same problem with French version. 
Repeating "Train now" after closing the window with X only 
made the above lines to repeat in the log file. log files closes 
by

Saving configuration -> C:\Documents and 
Settings\Chealer\Application Data\SpamBayes\Outlook.ini
SpamBayes - Disconnecting from Outlook
Bayes database is not dirty - not writing
SpamBayes processed 0 messages, finding 0 spam and 0 
unsure
Addin terminating: 1 COM client and 2 COM servers exist.


And now, just as I was writing the bug report, I open Outlook 
and it's gone! SB is now trained, and I made no reboot, no 
update of anything...
So what to say? Well, be patient. I think I tried the function 
about 10 times and closed Outlook around 5 times in the 
meantime... hope it's gonna be as simple as that to fix the 
bug too.
By the way, this bug succeeded to the max size error with 
binary 002 which had been perfectly fixed by 003.

OS is Windows XP Pro SP1 French, I have Outlook XP SP2 
French and didn't change this since months.

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

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



More information about the Spambayes-bugs mailing list