[spambayes-dev] Compilation & translation quest.

Kenny Pitt kenny.pitt at gmail.com
Fri Jul 1 15:44:53 CEST 2005


Âàñèê Àëåêñåé wrote:
>     "C:\Python24\Lib\site-packages\win32com\client\gencache.py", line
> 629, in _GetModule mod = __import__(mod_name) 
> ImportError: No module named
> 00062FFF-0000-0000-C000-000000000046x0x9x0 
> 
> So I got only iss file without any needed files in py2exe\dist\
> 
> Whats the problem ? I think there's my mistakes, but where I mistake ?

You have to build on a system with Outlook 2000 installed.  The error is
coming when trying to import the COM type libraries for integrating into
Outlook.  The build will not work if you only have Outlook XP or Outlook
2003.  In order for SpamBayes to work with Outlook 2000 and higher, we have
to build to the lowest supported version.

You can, however, get it working on your system by making a couple of local
changes to your setup_all.py script.  Starting on line 47 in the version I
have there is a section that begins with "typelib = [".  If you are using
Outlook 2003 then make the following change to the 2 lines that follow the
"typelib =":

        ('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 0),
        ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 1),
Change to:
        ('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 2),
        ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 2),

Notice that only the version numbers at the end change.  If you are using
Outlook XP, the "9, 2" in the first line should be "9, 1" instead.  I can't
remember if the second line is "2, 1" or "2, 2" for XP so just try both.

-- 
Kenny Pitt



More information about the spambayes-dev mailing list