Error while executing a python code on server.

Niharika
Niharika New Altair Community Member
edited November 5 in Community Q&A
Hi I am running  a python code on server and I am the following error

There was more issue I figured in the logs that for Job Container

The python has been configured in system settings and .rapidminer properties file.
We have installed Anconda in C drive and our server has been hosted on D drive so could that be an issue.
Another thing which we found that when we are running anaconda prompt and importing python packages as Panda and Numpy its working fine.But from cmd when we run python and import panads its giving dependency error so could that be an issue .
  

Answers

  • Marco_Barradas
    Marco_Barradas
    Altair Employee
    @Niharika for the agents you need to configure the path for Python.
    Go to you agent path 
    D:\job-agent-home\config\rapidminer
    and on the file: rapidminer.properties
    Add this lines
    rapidminer.python_scripting.path=C:/ProgramData/Anaconda3/python.exe
    rapidminer.r_scripting.path=C:/Program Files/R/R-3.5.0/bin/x64/Rscript.exe

    with the right path for your installation.
    Hope this works!
  • Niharika
    Niharika New Altair Community Member
    I have added this path to the file.
  • btamas
    btamas New Altair Community Member
    Hi @Niharika,

    which version of Python Scripting extension are you using? Try to upgrade to the latest (9.3.1) if you are using an older version.
  • Niharika
    Niharika New Altair Community Member
    The extension was 9.2 which was compatible with my server version 9.2.
    The issue got resolved .Had issue with Anaconda version 3.7.The base Environment doesn’t  get activated by default. For solving the issue we need to set the  environment variables  in system settings manually using CONDA_DLL_SEARCH_MODIFICATION_ENABLE as true.