I have successfully converted my python project to a service. When using the usual options of install and start/stop, everything works correctly. However, I wish to compile the project using py2exe, which seems to work correctly until you install the EXE as a service and try and run it.
You get the following error message:
My compile python file (which links to the main project) is as follows:
import py2exe
setup(console=['webserver.py'])
Any help would be greatly appreciated.
You setup.py file should contain
setup(service=["webserver.py"])
as shown in the "old" py2exe docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With