[Spambayes] UnicodeDecodeError at outlook pluging loading
Hamel Gilles - Brandt Appliances
gilles.hamel at elcobrandt.com
Thu Aug 21 13:57:28 EDT 2003
Hi everybody,
I have tried the outlook plugin from the installer
SpamBayes-Outlook-Setup-007.exe.
When i start my outlook 2000, the loading of spambayes module failed.
Here is my log file :
Error connecting to Outlook!
Traceback (most recent call last):
File "out1.pyz/addin", line 1053, in OnConnection
File "out1.pyz/manager", line 724, in GetManager
File "out1.pyz/manager", line 248, in __init__
File "out1.pyz/manager", line 519, in LoadConfig
File "out1.pyz/ntpath", line 101, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 6:
ordinal not in range(128)
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 "out1.pyz/addin", line 1053, in OnConnection
File "out1.pyz/manager", line 724, in GetManager
File "out1.pyz/manager", line 248, in __init__
File "out1.pyz/manager", line 519, in LoadConfig
File "out1.pyz/ntpath", line 101, in join
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 6:
ordinal not in range(128)
SpamBayes - Disconnecting from Outlook
Addin terminating: 0 COM client and 1 COM servers exist.
I have seen a numerous previous messages about this problem.
The Ascii code 0x8e map the char é.
In my directory profile (\Documents and settings\... ) , I have file and
directory names which contain the é character.
The workaround is to install from source and modify the value of encoding
from "ascii" to "iso-8859-1" in \python2\lib\site.py.
I have no knowledge with python language.
Is locale environnement variables are ignored in site.py file ?
#encoding = "ascii" # Default value set by _PyUnicode_Init()
encoding = 'iso-8859-1'
if 0:
# Code never reach ????
# Enable to support locale aware default string encodings.
import locale
loc = locale.getdefaultlocale()
if loc[1]:
encoding = loc[1]
So, setting the LANG variable has no effect...
Any idea ?
More information about the Spambayes
mailing list