[spambayes-dev] Compilation & translation quest.

Mark Hammond mhammond at skippinet.com.au
Tue Jul 5 05:09:10 CEST 2005


> The result is :
> [skipped]
> creating C:\SPAMBAYES\windows\py2exe\build\bdist.win32
> creating C:\SPAMBAYES\windows\py2exe\build\bdist.win32\winexe
> creating C:\SPAMBAYES\windows\py2exe\build\bdist.win32\winexe\collect
> creating C:\SPAMBAYES\windows\py2exe\build\bdist.win32\winexe\temp
> creating C:\SPAMBAYES\windows\py2exe\dist
> creating C:\SPAMBAYES\windows\py2exe\dist\lib
> creating C:\SPAMBAYES\windows\py2exe\dist\bin
> *** generate typelib stubs ***
> creating
> C:\SPAMBAYES\windows\py2exe\build\bdist.win32\winexe\temp\win32com
> creating
> C:\SPAMBAYES\windows\py2exe\build\bdist.win32\winexe\temp\win3
> 2com\gen_py
> Traceback (most recent call last):
>   File "C:\SPAMBAYES\windows\py2exe\setup_all.py", line 187, in ?
>     zipfile = "lib/spambayes.modules",
>   File "C:\Python24\lib\distutils\core.py", line 149, in setup
>     dist.run_commands()
>   File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
>     self.run_command(cmd)
>   File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
>     cmd_obj.run()
>   File "C:\Python24\Lib\site-packages\py2exe\build_exe.py",
> line 183, in run
>     self._run()
>   File "C:\Python24\Lib\site-packages\py2exe\build_exe.py",
> line 214, in _run
>     self.typelibs)
>   File "C:\Python24\Lib\site-packages\py2exe\build_exe.py",
> line 1254, in collect_win32com_genpy
>     mod = gencache.GetModuleForTypelib(*info)
>   File
> "C:\Python24\Lib\site-packages\win32com\client\gencache.py",
> line 258, in GetModuleForTypelib
>     mod = _GetModule(modName)
>   File
> "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

Currently you need Office 2000 installed to build spambayes.  This is
because we reference the Office 2000 type-libraries, which allows us to work
in all office versions 2000 or later.  If we referenced the Office XP
type-libraries, SpamBayes would no longer work on systems with only office
2000.

For the purposes of testing, you could change setup_all.py to reference the
typelibs for your version of Office.  To do this you will need to run
"\Python23\lib\site-packages\win32com\client\makepy.py -i", and select the
relevant typelibs from the list.  makepy will print the new values you can
use for the selected typelibrary.  In general, most will be very similar to
the originals, but with a different version number.  You will also need to
update Outlook2000\setup.py with these new values.  Again, once you have
done that, your version will not work with Office 2000 - but that may be OK
if you don't intend distributing the built version.

Mark



More information about the spambayes-dev mailing list