Using py2exe to wrap a service?

MaR Maria.Reinhammar at accalon.com
Thu Sep 21 08:22:41 EDT 2006


Tim Golden wrote:
[snip..]
> At this point there are several options open to us:
>
> (in no particular order)
> 1) You could nudge the code at line 217 to make use of
> that suggestion.
> 2) I could do that and send you the result.
> 3) I could alter the module so it doesn't use gencache
> at all. I don't seem to be using any constants so the
> Dispatch might as well be dynamic.
> 4) None of the above.
>
> I'm happy to do (3) and send it to you privately if you're
> willing to try. Of course, it might not be the cause
> of the problem in any case!
>
> TJG

Really appreciate!
Reading the page you indicate, I tried solution 3 as it seemed to be
the favored one by the author.. I simply added the lines, doing the
import and the setting the flag, in a copy of the active_directory
module.
But maybe you thought of some other nudging?
Some kind of progress anyway, I guess (see below).
Maybe your offer to do your option (3) is worthwhile after all?

//M

The instance's SvcRun() method failed
  File "win32serviceutil.pyc", line 785, in SvcRun
  File "MailProxySvc.pyc", line 132, in SvcDoRun
  File "MailProxySvc.pyc", line 100, in setup
  File "AddressDB.pyc", line 55, in loadPersonsFromAD
  File "active_directory_M.pyc", line 369, in search
  File "active_directory_M.pyc", line 219, in query
  File "win32com\client\gencache.pyc", line 536, in EnsureDispatch
  File "win32com\client\gencache.pyc", line 520, in EnsureModule
  File "win32com\client\gencache.pyc", line 287, in
MakeModuleForTypelib
  File "win32com\client\makepy.pyc", line 223, in
GenerateFromTypeLibSpec
  File "win32com\client\gencache.pyc", line 141, in GetGeneratePath
exceptions.IOError: [Errno 2] No such file or directory:
'D:\\projects\\MailProxy\\dist\\library.zip\\win32com\\gen_py\\__init__.py'




More information about the Python-list mailing list