468,719 Members | 1,787 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,719 developers. It's quick & easy.

Running compiled windows service python script

Hi All

I have a windows service (attached file). I basically just calls another
script every 60 seconds. I can install, start and stop this service as
expected with:
ParseMailboxService.py install | start | stop

The problem is: if I create an exe of this script (all required modules
are included in the exe) with gui2exe (a frontend to py2exe) I can
install the service - but not start it. The error it returns is "Error
starting service: The service did not respond to the start or control
request in a timely fashion."

Is there something I need to additionally include in the compiled exe? I
have manually included the following modules:
* servicemanager
* win32con
* win32evtlogutil
* win32serviceutil

I would greatly appreciate any help.

Regards

Nicol

--

The three things to remember about Llamas:
1) They are harmless
2) They are deadly
3) They are made of lava, and thus nice to cuddle.

Jun 27 '08 #1
1 2522
On May 13, 5:15*am, Aspersieman <aspersie...@gmail.comwrote:
Hi All

I have a windows service (attached file). I basically just calls another
script every 60 seconds. I can install, start and stop this service as
expected with:
* * ParseMailboxService.py install | start | stop

The problem is: if I create an exe of this script (all required modules
are included in the exe) with gui2exe (a frontend to py2exe) I can
install the service - but not start it. The error it returns is "Error
starting service: The service did not respond to the start or control
request in a timely fashion."

Is there something I need to additionally include in the compiled exe? I
have manually included the following modules:
* * * servicemanager
* * * win32con
* * * win32evtlogutil
* * * win32serviceutil

I would greatly appreciate any help.

Regards

Nicol

--

The three things to remember about Llamas:
1) They are harmless
2) They are deadly
3) They are made of lava, and thus nice to cuddle.

*ParseMailBoxService.py
2KDownload
I recommend re-posting to the PyWin32 user's group and possibly the
py2exe group.

http://mail.python.org/mailman/listinfo/python-win32
https://lists.sourceforge.net/lists/...o/py2exe-users

Alternatively, you can check these links out that are about creating
Windows Services in Python:

http://agiletesting.blogspot.com/200...s-windows.html
http://essiene.blogspot.com/2005/04/...-services.html
http://tgolden.sc.sabren.com/python/wmi.html

Hope that helps!

Mike
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Peter Teniz | last post: by
9 posts views Thread by Mondal | last post: by
reply views Thread by Stefan Krah | last post: by
3 posts views Thread by James Stroud | last post: by
24 posts views Thread by Mark | last post: by
3 posts views Thread by sophie_newbie | last post: by
1 post views Thread by CARIGAR | last post: by
9 posts views Thread by bryonone | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.