How to setup Python on the Server

How to setup Python on the Server


This article explains how to set up the ServiceDesk plus server to run python scripts.

1. The first step is to install python on the application server and you can download it from here. Any version above 3.4.1 should work fine. Start the setup and follow the onscreen instructions to complete the installation.

A quick suggestion here would be to choose an easily accessible installation path when the option is presented during the setup process.

2. The next step is to make sure that the python installation location is added to the Environmental variable called 'Path' on the server.

Let us say, Python is installed in C:\Python34 on the server. Then make sure the following locations are added to the Path variable.

C:\Python34 and C:\Python34\Scripts

Once this is done, you should be able to access the Python Interpreter by typing 'Python' or 'Py' from Run or from a Command prompt.

3. Many of the scripts make API calls to perform various actions and a python library called 'requests' is used to handle this. This is not bundled with the default python package and has to installed separately. More information about this library and the installation instructions can be found here.

Refer to the below video for a short guide to install and set up a python on a windows server.




          • Related Articles

          • Update status using Python script in 11.0

            Using a Python script via custom trigger, we can update the status invoking an API call. A short guide on setting up python is available here : https://pitstop.manageengine.com/portal/kb/articles/how-to-setup-python-on-the-server Find the attached ...
          • Notify Support Reps when a new reply is received for Unassigned Requests

            Please do follow the below steps to notify support reps when an unassigned request is updated or when a reply is received.  1. Download the configuration.json file, sendMail.py file, requestobj.json file from the below link: ...
          • Steps for Custom Scripts to show only view of Account's Requests for primary contact.

            1.Create a folder under this location : ManageEngine\SupportCenter\custom with the name scripts and then add the custom scripts to be executed.  Example of a custom scripts : primary contact only needs view of account's requests and not the default ...
          • Migration of SCP from one server to another

            1. Stop the application on the production server. 2. Take a trimmed backup of the application (backup without attachments) if you are using the default PgSQL database. If you are using MSSQL, you can take a SQL backup (.bak). 3. Download and install ...
          • Script to satisfy first response SLA in SCP 11

            As of now only for the following scenarios, First response can be marked in the SupportCenter application: * Notes addition * Worklog addition * Technicians manual response Apart from this if you want to mark any other actions in the application as ...