[Spambayes] Compiling sb_filter on Win32
tameyer at ihug.co.nz
Wed Oct 20 23:05:35 CEST 2004
> Anybody had any luck compiling sb_filter.py into an exe on
> Win32? I keep seeing these error messages about certain
> modules not being found.
These don't necessarily matter, depending on what you're doing. You can set
py2exe to ignore them, if you like.
Have you tested the resulting .exe? Does it work? If not, what happens?
> The following modules
> appear to be missing ['MySQLdb', 'bsddb3', 'gdbm', 'psycopg',
You only need MySQLdb if you want the sb_filter.exe to be able to use MySQl
as a storage option. If you do, then you need to install MySQLdb and py2exe
will find it. If you don't, then this error is harmless.
You don't need bsddb3 since you're compiling with Python 2.3. py2exe's
modulefinder isn't clever enough to understand that it only gets loaded with
earlier versions of Python. This error is harmless, and you can ignore it,
or set py2exe to ignore it.
AFAIK gdbm isn't used on Windows. IAC, it's just another storage option
like MySQLdb, so unless you're planning on explicitly using it, again it's
pyscopg is for using Postgre SQL I think (but am not 100%). If I'm right,
then that's just like MySQL, above.
I don't know what is asking for win32com.shell, but I suspect that it's for
the Options, as, on Windows, the Options code looks for the
bayescustomize.ini file in the Windows Application Data directory, which it
needs pywin32 to find. If you don't have this, I'm pretty sure the code
falls back to the non-Windows behaviour, so again harmless, or you can
install pywin32 and that should let py2exe find it.
Please always include the list (spambayes at python.org) in your replies
(reply-all), and please don't send me personal mail about SpamBayes. This
way, you get everyone's help, and avoid a lack of replies when I'm busy.
More information about the Spambayes