[spambayes-dev] FW: [Spambayes] Problem with Spam bayesinstallation on Windows 2000pc

Kenny Pitt kennypitt at hotmail.com
Wed Nov 19 17:49:28 EST 2003

Mark Hammond wrote:
>> In this case, win32com does not find the version 9.0 typelib
>> but it does
>> find the 9.1 typelib.  In order to substitute the newer typelib,
>> win32com attempts to regenerate the wrappers because they
>> don't exist in
>> the binary, and it attempts to write them into the app installation
>> directory.  If the user doesn't have admin privileges then this
>> fails. 
> I think you are on the money.  However, the world has shifted.  Newer
> versions will be released using py2exe, and will have the "gencache"
> inside the .zip file.  win32com will then consider it "read-only",
> and in the scenario you outline above *should* use the pre-generated
> 9.0 typelib (as it has the same minor version).
> My testing shows this to work fine with a 9.1 typelib.  I *hope* that
> the logic still holds up when a 9.2 exists too <wink>.  The tlb
> checking/validation code is pretty horrible and due for a cleanup
> (but I didn't write it this time <wink>)

I have all 3 typelibs on my system, so don't know if I'm getting the
complete picture.  When I run from the py2exe binary, I've never gotten
an error and it hasn't generated any new wrapper classes into the
dist\bin or dist\lib directories.  I'll try removing any wrappers from
site-packages\win32com\gen_py and my temp dir and run again to make sure
nothing gets regenerated elsewhere.

FYI, I installed the trial version of InBoxer and it has the same
problem since it is based on the old plug-in binary mechanism.  It
created a support\gen_py subdirectory in the app dir and wrote new
wrappers for my 9.2 typelib.

Kenny Pitt

More information about the spambayes-dev mailing list