To install the Python REST Service as a Windows Service follow these steps:
Make sure Python has been installed ‘for all users’ otherwise the system user which runs the service will not be able to see it.
Python needs to be in the system PATH
Edit the ‘run.bat’ so that it contains an absolute path to the ‘waitress_server.py’ file and your virtual environment
Run a command line window as administrator
Navigate to the Python REST Service subfolder in your InsightMaker distribution
Execute: nssm install “InsightMaker Python REST Service”
Set the path to run.bat
Set the start up directory to be the path of the Python Rest Service
Optionally configure which user the service runs as (see point 1)
Run the service and check the log file
The first time the app service runs it will download a series of modules and models. If this instance does not have internet access, please consult Aiimi for further information