py2exe, 2.3 and services (raising flag again)

B

Brad Clements

Now that Thomas is back from vacation ;-)

I cannot get the example service to work using Python 2.3 and the latest
released py2exe (or the cvs version) on Win2k SP3. I can run the sample
service .py file ok, but once it's inside a py2exe generated exe.. no
working. The error in the event log is:

The description for Event ID ( 240 ) in Source ( MyService ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: 1063, The service process could not
connect to the service controller..


I'm looking for a suggestion or two on how I can start debugging this
problem. How do you debug py2exe generated .exe's? I have VC++ 6.0
 
T

Thomas Heller

Brad Clements said:
Now that Thomas is back from vacation ;-)

I cannot get the example service to work using Python 2.3 and the latest
released py2exe (or the cvs version) on Win2k SP3. I can run the sample
service .py file ok, but once it's inside a py2exe generated exe.. no
working. The error in the event log is:

The description for Event ID ( 240 ) in Source ( MyService ) cannot be
found. The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. The following
information is part of the event: 1063, The service process could not
connect to the service controller..

There's a new py2exe version in the works, it is in the CVS sandbox
subdirectory. If you want it, I can mail you a binary for testing.

Thomas
 
M

max

Thomas said:
There's a new py2exe version in the works, it is in the CVS sandbox
subdirectory. If you want it, I can mail you a binary for testing.
me 2, please! (e-mail address removed)
once we are on the topic, has there been any movement to do a monolith
option for py2exe (e.g. there is only one exe, no dlls necessary). this
is somewhat useful because the exe can be freely moved around without
worrying about the dlls.

thanks!
max
 
H

Harald Massa

Max,
once we are on the topic, has there been any movement to do a monolith
option for py2exe (e.g. there is only one exe, no dlls necessary). this
is somewhat useful because the exe can be freely moved around without
worrying about the dlls.

This would be a VERY GOOD THING. All the PYDs and DLLs and so on in ONE
file. Yes, that would lead to 2-4 pythonXX.dlls in memory ... yes, all the
other DLLs (wxPython...) would be more than one time in memory, and on
disk...


But: some compression added (UPX) the files would be of reasonable size
(below 20MB), and distribution would become a charme.

+1 for this wish

Harald
 
T

Thomas Heller

I said:
There's a new py2exe version in the works, it is in the CVS sandbox
subdirectory. If you want it, I can mail you a binary for testing.

Instead of mailing it to several persons showing interest in it, I've
uploaded a binary here:

<http://starship.python.net/crew/theller/py2exe-0.5.0a1.win32-py2.3.exe>

Still work in progress (no support for Tkinter, for example), but works
for me and the included samples.

Documentation missing. A pity, because a lot has changed.
But help("py2exe") on the Python prompt shows something.

And Mark Hammond (who wrote quite some code for this, many thanks to
him) has a setup script for the SpamBayes Outlook plugin binaries in the
SpamBayes project CVS, which may give additional hints how to use this
py2exe.

Thomas
 
B

Brad Clements

Hurray, it works! And I see we can now distribute multiple .exe's with one
shared .zip file. Great! You da man! Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,176
Latest member
Jerilyn201
Top