|
|
|
|||||||||||
Python: Create win32 services using Python and py2exeMay
01
Hi, in this case I'm going to show you how to create simple services for the win32 platform using the powerfull Python programming language and the py2exe utility.Writing Python applications under windows is quite simple, maybe you didn't use windows to develop your application (as I do most times), the code, what you want to do with your application is up to you, and I'm not goint to touch the programming techniques for developing windows applications, Just, create a simple -and useles- win32 service that will help you to uderstand how to create your very own windows service. First, every single program that you create with python and compile with py2exe and does run well, may be a win32 service, it may be a program that fetches the RSS xml feed for islascruz.org, maybe is a more complex program to generate some files and then send them to another server, maybe is a simple program to remind you to sand up an walk 10 minutes. Said that we don't really need to create a program thinking on it as a service, we will create a simple program and test it using the python interpreter, who needs to compile?, well, we need it, but just when we are sure that our program performs well. Read more #1.1 Re: Re: Python: Create win32 services using Python and py2exe
Marco Antonio Islas Cruz, <E-Mail> / Friday 21 August 2009 3:11pm
I guess you are doing something wrong, but don't know what. If you like you could send me piece of your code (the code that you use to create the service) and I will check it. [ Reply (0) ]
Comment XML feeds: RSS | Atom
|
|||||||||||
|
|
|||||||||||
#1 Re: Python: Create win32 services using Python and py2exe
I getting the following when I try to start with the -auto option.
\dist>ServiceLauncher.exe -auto
Connecting to the Service Control Manager
Traceback (most recent call last):
File "boot_service.py", line 173, in
pywintypes.error: (1063, 'StartServiceCtrlDispatcher', 'The service process could not connect to the
service controller.')