[spambayes-dev] A Problem Compiling Spambayes in Win32

Kenny Pitt kennypitt at hotmail.com
Tue Jul 6 19:22:30 CEST 2004


Luis Roberto Lozano de los Santos wrote:
> Hi there i dont know if this problem had already been asked, but im
> getting mad
> 
> This is the error:
[snip]
> ImportError: No module named 00062FFF-0000-0000-C000-000000000046x0x9x0

I'll bet that you've never had Outlook 2000 installed on your system.  The
failure is occurring on the COM type library for Outlook.  Py2exe has to
import a specific version of the type library, and the "x9x0" at the end of
the identifier represents version 9.0 which is Outlook 2000.  We do this
because newer versions are compatible with the Outlook 2000 interfaces, but
Outlook 2000 may not be compatible with newer interfaces in more recent
versions.  If this type library is not registered on your system then you
get this import error.

If you just need to compile SpamBayes for your own use, you can edit the
"setup_all.py" file to change the version numbers.  Look for the following
lines that should start somewhere around line 40:

    typelibs = [
        ('{00062FFF-0000-0000-C000-000000000046}', 0, 9, 0),
        ('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}', 0, 2, 1),
        ('{AC0714F2-3D04-11D1-AE7D-00A0C90F26F4}', 0, 1, 0),
    ]

The first GUID (that begins with "00062FFF") is Outlook.  Change "9, 0" to
"9, 1" if you are using Outlook XP/2002, or to "9, 2" if you are using
Outlook 2003.  You may also need to change the version of the second GUID
(2DF8D04C-...) as well.  Newer versions use "2, 2" instead of "2, 1".

> By the way, why spambayes does not have a SMTP proxy like POP3 , I like
> to filter the email before they arrive to my SMTP server (non-Unix) is
> there any reason?

See FAQ #6.2:

http://spambayes.sourceforge.net/faq.html#are-there-plans-to-develop-a-serve
r-side-spambayes-solution
Or
http://tinyurl.com/2bc6w
 
-- 
Kenny Pitt



More information about the spambayes-dev mailing list