Python Code not running on server

Niharika
Niharika New Altair Community Member
edited November 5 in Community Q&A

I have created this python process in my studio when I am exporting this process as a web service and calling it from Postman I am getting following error.

I have installed the extension on server and updated the job-agent

Best Answer

Answers

  • varunm1
    varunm1 New Altair Community Member
    edited October 2019
    Hello @Niharika

    Did you test the installed python package to see if Rapidminer is detecting "pandas" module? 

    Just to double-check, did you create a system settings for python in the rapidminer server. You need to add a property rapidminer.python_scripting.path in property and the path to your python (installed) in value column.
  • Niharika
    Niharika New Altair Community Member
    Hi How do I check for the python package.My server has been hosted on a VM. On that VM I am able to run a code which runs 'pandas' package..
    In the Server System settings I have added following:
    rapidminer.python_scripting.hidden.initialized=true
    rapidminer.python_scripting.package_manager=conda (anaconda)
    rapidminer.python_scripting.search_paths=C:\Anaconda3\python.exe
  • varunm1
    varunm1 New Altair Community Member
    I am tagging @Pavithra_Rao and @David_A who might help you.
  • Niharika
    Niharika New Altair Community Member
    Okay thanks
  • Pavithra_Rao
    Pavithra_Rao New Altair Community Member
    Answer ✓
    @Niharika

    The easiest way to test the issue is to run this Python process on RapidMiner Server, (not on Studio installed on VM, where the Server is hosted)
    https://docs.rapidminer.com/latest/server/use/run-a-process/run-from-studio.html

    This will help look into the error within the Server logs and then would be easier to export this process as REST API end-points

    Regards,
    Pavithra