The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Error when executing operator

MarlaBotMarlaBot Employee-RapidMiner, Member Posts: 57 Community Manager
edited October 2019 in Help
A RapidMiner user wants to know the answer to this question: "Hey there. When I try to use the Execute Python operator it is giving error saying Failed to detect Python at the given path. I do have Python installed on my computer. Maybe someone knows how to fix this? I want to restrict to sample size of clustering are there any other options to do so? F.e i have 3 cluster and 20 item i wanna that each cluster have 6 item at least or max. 10 item how can i restrict it ? Thank you."
Tagged:

Best Answer

Answers

  • SelimSelim Member Posts: 32 Learner II
    @varunm1 ı have problem about execute python operator it is giving error .ı did the python path in Settings --> Preferences --> Python Scripting window. ı set the python path and tested it but  it gave me error 
    ı added screenshot of error to Word file.can you check it ? 
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    Hi @Selim,

    Can you check if your python path has " in it. I think the issue might be with " in your path. There shouldn't be " before C:


    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • SelimSelim Member Posts: 32 Learner II
    edited April 2019
    hey @varunm1 thanks for your answer but ı did not solve it still.it is not writing something lıke u specify in red circle.ı added to world file again . do you have an ıdea about how ı make it work ?
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    Hello @Selim

    Your path looks fine for me. Maybe @Marco_Boeck or @hughesfleming68 can suggest on this?



    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • SelimSelim Member Posts: 32 Learner II
    @varunm1 When ı was run it ıt was saying me pandas modul not found and then ı install to anaconda 3 but still same sitution ı have . So ıdk wht am gonna do exactly . When u install to python and anaconda is there anything do special ? And also where did u set it ? İn C file ? 
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    edited April 2019
    If you were using anaconda please create a dedicated environment for rapidminer and install all the necessary packages in this environment, I suggest setting up this new environment with python 3.5 as it work without any issues.

    @lionelderkrikor do you have any suggestions for this.
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • SelimSelim Member Posts: 32 Learner II
    @varunm1 May you send me to link ?
    cuz it s forwarding me to  python 3.7 if u sent it i ll be glad . Thanks 
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    Yep the default is with 3.7. If you want 3.5 you need to create a new environment. The below command can be used in anaconda terminal. Below link will explain to you how to create that.
    conda create -n myenv python = 3.5

    https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands

    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • lionelderkrikorlionelderkrikor RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn
    @varunm1,

    I agree with you. Installing Python 3.5 is maybe the solution...

    Regards,

    Lionel
  • SelimSelim Member Posts: 32 Learner II
    @varunm1 ı want to progress step by step .so firstly am ı gonna use to anaconda navigator to do this instructions ? this web site does not saying where am gonna wrıte this instructions ? ı added my screen of anaconda3 may u check it to discribe me where ı ll write 2 this instructions ?
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    You need to use anaconda terminal, type anaconda in your windows search, you can see anaconda prompt. In this prompt, you will run the above-mentioned code which will create a new environment with python 3.5.

    Once you were done creating a new environment, you can close the current anaconda prompt and open prompt for the new environment. For example, if I search for Anaconda on my pc you can see there are two prompts. The first one Anaconda prompt is for default python 3.7 and Anaconda Prompt (Varun) is what I use for rapidminer with 3.5. Similarly, you will get something called myenv. You should open this for installing modules that were required by rapidminer.

     

    you need to install modules like numpy, pandas, etc in the new anaconda prompt (myenv). Before installing check in anaconda navigator in the new environment if you have these packages or not.


    If you want to install pandas, you can search on google "pandas install anaconda" which will show you https://anaconda.org/anaconda/pandas link where you can find a command to install pandas, similarly you need to install numpy etc if they are not available. 

    Hope this helps
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • SelimSelim Member Posts: 32 Learner II
    edited April 2019
    @varunm1 @lionelderkrikor ı have opened to anaconda prompth and wrote 2 conda create -n myenv python = 3.5 and then what am ı gonna do 2 run it ? may u check 2 word file to see of anaconda prompt screen ? when ı press to enter it is giving error
    -----------------------------error------------------
    (base) C:\Users\yavuz çelebi>conda create -n myenv python = 3.5
    WARNING: The conda.compat module is deprecated and will be removed in a future release.
    WARNING: A space was detected in your requested environment path
    'C:\Users\yavuz çelebi\.conda\envs\myenv'
    Spaces in paths can sometimes be problematic.

    CondaValueError: invalid package specification: =
  • SelimSelim Member Posts: 32 Learner II
    edited April 2019
    @varunm1 ı understand to what is the problem at execute python operator but now ı need to create new section as u say and load which ı need libraries as scipy,pandas etc... but as ı say at my last messsage ı just have a problem about to run to codes at anaconda prompt .and also ı have checked base(root) section of anaconda navigator and there is pandas modula. ı am waiting 4 your answer.thanks
  • varunm1varunm1 Member Posts: 1,207 Unicorn
    @Selim let's take this offline as the thread will become big. Check your message on the top right corner of this page.
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

Sign In or Register to comment.