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
A error
Rapidstudent
Member Posts: 8 Learner I
I have a python code which capture website and save content into csv file. It can successfully run in Execute Python Operator and to save a file in my computer. However finally, A error " no rm_main() method is defined" appear.
How can I add any formula to make it disappear? I need to convert the type of my data such as exampleset ? Actually, I don't know it clearly because I am just a beginner. I don't know why I successfully save a file but a error appear finally........ please help , please simply teach me how to solve it.
Thank you
How can I add any formula to make it disappear? I need to convert the type of my data such as exampleset ? Actually, I don't know it clearly because I am just a beginner. I don't know why I successfully save a file but a error appear finally........ please help , please simply teach me how to solve it.
Thank you
0
Answers
The python scripting operator uses rm_main() as a _init_ type of function. This is the main function which executes first and maps to other functions you have in your script. You have to include this always in your code as suggested by the scripting operator.
Harshit
have you defined the method in your script? It seems like it is missing. Please check out the tutorial processes in the help of the Execute Python Operator, where you can see some examples on how to use the operator.
If you would post the process xml (you can get it by clicking the ,,Copy the process to the clipboard'' icon in the top right corner) here, along with your Python code, we could provide more specific guidance, about what could be the problem and how to solve it.
Best,
Bence Tamás