[python-win32] Re: Problems with py2exe and COM
Thomas Heller
theller at python.net
Mon Dec 29 16:30:19 EST 2003
"Giles A. Radford" <moof at metamoof.net> writes:
> OK, I'm obviously having a bad day, cos I can't seem to get this to
> work. I feel this is lack of understanding on my part, cos I can't find
> much documentation on the win32com modules - is there a secret
> documentation stash that I'm missing?
>
> I'm trying to create a DLL with some COM classes that update some websites
> with certain details.
>
> The problem I have is that I manage to get py2exe to compile the
> program (with a few warnigns about classes refrred to that just don't
> exist - I don't have Carbon.Folders for instance), but when I try to
> register the DLL with regsvr32.exe, I get back a message which said
> (paraphrased from spanish) "Error in DllRegisterServer in webupdate.dll
> - Returned a code: 0x80040201".
Are you using py2exe 0.4.x? If so, you should switch to the (soon to be
officially released) version 0.5. Prereleases are in the Sourceforge
project page, in the downloads section. Note that these currently
require win NT, 2k, or XP, and Python 2.3, and, for COM, win32all 163.
There's no documentation so far ;-), but some samples (including COM
servers) are installed into the lib\site-packages\py2exe\samples
subdirectories. You have to rewrite your setup script slightly, look at
the samples to see how.
> I have no idea what this means. I've been fiddling wiht it all day, and
> I'm tired of it now. The fact that I can seem to find no documentation
> on the process, and what it's suppsed to do. Also, if I try to compile
> the py2exe with --debug I end up with a rather abstruse and
> impossible-to-decypher error:
--debug build debug versions of the executables, normally you don't want
to do this, also you need debug versions of Python, py2exe, win32all,
and whatever you use.
Thomas
More information about the Python-win32
mailing list