Error while executing a python code on server.

NiharikaNiharika Member Posts: 40 Maven
edited October 2019 in Help
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 .
  
Tagged:

Answers

  • MarcoBarradasMarcoBarradas Administrator, Employee, RapidMiner Certified Analyst, Member Posts: 272 Unicorn
    @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!
  • NiharikaNiharika Member Posts: 40 Maven
    I have added this path to the file.
  • btamasbtamas Employee, Member Posts: 11 RM Team 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.
  • NiharikaNiharika Member Posts: 40 Maven
    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.
Sign In or Register to comment.