Unable to run custom scripts

Unable to run custom scripts

Hi All,

I am really stuck and i am trying to run same as in :-


However i get :-

Traceback (most recent call last):
File "update_request.py", line 4, in <module>
import requests
ModuleNotFoundError: No module named 'requests'

Custom scripts are located at :-
C:\Program Files\ManageEngine\ServiceDesk\integration\custom_scripts

Python is installed at:-
C:\Users\JoyNandi\AppData\Local\Programs\Python\Python38

Path variable have reference to :-
C:\Users\JoyNandi\AppData\Local\Programs\Python\Python38\
and
C:\Users\JoyNandi\AppData\Local\Programs\Python\Python38\scripts

Note: i earlier installed python 3.8.2 however the issue was still then and i have a folder named 
Python38-32  at C:\Users\JoyNandi\AppData\Local\Programs\Python\Python38-32

When i comments the below lines in the update request .py the scripts fails in the puturl call.

#import requests
#from functions import read_file
#from functions import putURL
#from functions import getURL,getResponseStatus

 Even statements like from functions import read_file does not work and needed to be commented to see how far the scripts runs and the functions were manually copied from functions.py in update request.py.

Also noticed folder C:\Program Files\ManageEngine\ServiceDesk\integration\custom_scripts\request ges created when the script runs.

I have requests module installed in my m/d and simple script using requests module functions runs from the machine.


Please help me out what i am missing out.



                New to ADManager Plus?

                  New to ADSelfService Plus?