Windows Services With Python And Py2exe
Solution 1:
Even if you converted the .py script to an exe, the service still uses the python interpreter to run the service code itself. if you open "Services" and look at the service properties you should see something like - Path to executable: "C:\Python27\lib\site-packages\win32\PythonService.exe"
i'm guessing the other computer doesnt have python installed on it. if you want to be able to run that service on a machine without installing python you need to do something like This ,or you can also do it using cx_freeze
Solution 2:
http://www.py2exe.org/index.cgi/py2exeAndWindowsServices
There are some notes in there about modules conflicting with windows system dlls. He had a problem because he had a module called version and import version
caused the app to error out.
You can try importing win32traceutil as the first thing in your service. This should allow you to run the win32traceutil console app to display any stdout/stderr output from the service.
Post a Comment for "Windows Services With Python And Py2exe"