API Proxy failing when calling python module inside python script

I am trying to test a Python Policy but the script fails stating with the following error:

"Evaluation of script test.py (py) failed with reason: \"ImportError: No module named json\""

The module is available on RMP server as a part of python installation but still i am noticing above error. Do I need to update any configuration? How do I mention all the python modules to be available for APIGEE Proxy?

0 1 595
1 REPLY 1

Not applicable

Hi,

you need to add the python module to your message processors.

Ref: https://community.apigee.com/questions/79168/adding-python-modules.html