Bugs item #1550228, was opened at 2006-09-01 01:22 Message generated for change (Settings changed) made by twentytwelve You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1550228&group_id=61702
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Outlook Group: 1.1.x Status: Open Resolution: None >Priority: 9 Private: No Submitted By: 2012 (twentytwelve) Assigned to: Mark Hammond (mhammond) >Summary: 1.1a2-1.1a4: nonstandard characters in db path cause error Initial Comment: Windows XP Pro SP2. Outlook 2003 SP2. Clean install of SB Outlook plugin. 1.0.4 works well. Both 1.1a2 and 1.1a3 seem to have this problem. (1.0.4 and earlier versions have also been used earlier on this sytem with no problems for years.) Assumption: When the path to the db contains nonstandard characters, the plugin fails to load the database with "Failed to load bayes database" error at Outlook start. Since the path by default includes the Windows profile name, example "C:\Documents and Settings\Kristoffer Björkman\Application Data\SpamBayes\[etc]", this should be a very common problem for users in many countries. I can't find a workaround for this with the Outlook plugin version of SB. If there's no way to set the db path to somewhere outside of the Windows profile directory, this behaviour makes the application unusable. See log (from v1.1a2) included below, also see what seems a similar issue reported (with log) earlier at <http://www.mail-archive.com/[email protected]/msg00824.html>. ----- ERROR: 'There was an error initializing the Spam plugin.\r\n\r\nSpam filtering has been disabled. Please re-configure\r\nand re-enable this plugin\r\n\r\nError details:\r\nFailed to load bayes database' Traceback (most recent call last): File "manager.pyc", line 457, in __init__ File "manager.pyc", line 258, in Load UnicodeDecodeError: 'ascii' codec can't decode byte 0xf6 in position 39: ordinal not in range(128) Error connecting to Outlook! Traceback (most recent call last): File "addin.pyc", line 1281, in OnConnection File "manager.pyc", line 992, in GetManager File "manager.pyc", line 460, in __init__ File "manager.pyc", line 283, in InitNew File "manager.pyc", line 194, in new_bayes OSError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\Kristoffer Bj\xf6rkman\\Application Data\\SpamBayes\\default_bayes_database.db' ERROR: 'There was an error initializing the SpamBayes addin\r\n\r\nPlease re-start Outlook and try again.' Traceback (most recent call last): File "addin.pyc", line 1281, in OnConnection File "manager.pyc", line 992, in GetManager File "manager.pyc", line 460, in __init__ File "manager.pyc", line 283, in InitNew File "manager.pyc", line 194, in new_bayes OSError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\Kristoffer Bj\xf6rkman\\Application Data\\SpamBayes\\default_bayes_database.db' pythoncom error: Failed to call the universal dispatcher Traceback (most recent call last): File "win32com\universal.pyc", line 177, in dispatch File "win32com\server\policy.pyc", line 332, in _InvokeEx_ File "win32com\server\policy.pyc", line 654, in _invokeex_ File "win32com\server\policy.pyc", line 588, in _invokeex_ File "addin.pyc", line 1320, in OnStartupComplete exceptions.AttributeError: 'NoneType' object has no attribute 'never_configured' pythoncom error: Unexpected gateway error Traceback (most recent call last): File "win32com\universal.pyc", line 177, in dispatch File "win32com\server\policy.pyc", line 332, in _InvokeEx_ File "win32com\server\policy.pyc", line 654, in _invokeex_ File "win32com\server\policy.pyc", line 588, in _invokeex_ File "addin.pyc", line 1320, in OnStartupComplete exceptions.AttributeError: 'NoneType' object has no attribute 'never_configured' ---------------------------------------------------------------------- >Comment By: 2012 (twentytwelve) Date: 2008-03-31 19:56 Message: Logged In: YES user_id=989677 Originator: YES Problem seems to persist with 1.1a4, and I can't make the somewhere suggested workaround with setting data_directory in bin/default_configuration.ini work (same error message persists). Priority changed as per mydlo's suggestion. ---------------------------------------------------------------------- Comment By: Skip Montanaro (montanaro) Date: 2008-01-04 16:51 Message: Logged In: YES user_id=44345 Originator: NO Mark, can you take a quick look at this? Looks like Unicode filenames cause problems. Skip ---------------------------------------------------------------------- Comment By: Vladimir (mydlo) Date: 2008-01-04 16:11 Message: Logged In: YES user_id=1973630 Originator: NO May be Twentytwelve does not write it sufficiently clearly: nobody whos name contains non-standard ASCII letters or who is working on localized Windows (and therefore has data path to default bayes database with national letters like me: C:\Documents and Settings\Richard\Data aplikací\SpamBayes) can NOT use nor test SpamBayes plugin due to error: Failed to load bayes database' Traceback (most recent call last): File "manager.pyc", line 457, in __init__ File "manager.pyc", line 258, in Load UnicodeDecodeError: 'ascii' codec can't decode byte 0xed in position 46: ordinal not in range(128) Error connecting to Outlook! Traceback (most recent call last): File "addin.pyc", line 1294, in OnConnection File "manager.pyc", line 996, in GetManager File "manager.pyc", line 460, in __init__ File "manager.pyc", line 283, in InitNew File "manager.pyc", line 194, in new_bayes OSError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\Richard\\Data aplikac\xed\\SpamBayes\\default_bayes_database.db' ERROR: 'There was an error initializing the SpamBayes addin\r\n\r\nPlease re-start Outlook and try again.' So this bug should have priority at least 9 !!! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1550228&group_id=61702 _______________________________________________ Spambayes-bugs mailing list [email protected] http://mail.python.org/mailman/listinfo/spambayes-bugs
