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

Cannot run Jupyter Notebook

KarolKarol Member Posts: 5 Learner I
Hi, I am very new to Rapidmider. I am trying to run a Jupyter notebook, but I keep getting this error: The execution of the Python script failed. Please check your Python script: TypeError: rm_main() missing 1 required positional argument.
I trying to run this code, because I saw in a video  that I should write this command in order to start: 
def rm_main(data):
    print("hello")
    return data
Thank you in advance!
Tagged:

Best Answers

  • btamasbtamas Employee-RapidMiner, Member Posts: 11 RM Team Member
    Solution Accepted
    Dear Karol,

    The problem is probably, that you did not connected any data to the inp input port of the Execute Python operator, while you have defined 1 argument for rm_main. See the difference here:

    You can find more info in the documentation: https://docs.rapidminer.com/9.8/developers/python/extension/

    Best regards,
    Bence Tamás
  • KarolKarol Member Posts: 5 Learner I
    Solution Accepted
    Thank you for the reply!
  • KarolKarol Member Posts: 5 Learner I
    Solution Accepted
    Thank you
Sign In or Register to comment.