I managed to create the script and create the Hops component. Basically, I have 5 inputs and 1 output.
The script looks good, there is no error. But everytime I load the component on GH and inout the all 5 inputs, it always gives me this error
It’s a bit hard to tell from that picture, but it looks like you are plugging a text panel into the built-in Path input of the Hops component. You need to specify the location of the Grasshopper file that is being called in that input.
Thank you for the insight. I think I solved the problem that was actually some mistakes on my Python script. The panel text is actually not a grasshopper file but an exact name of the pre-trained surrogate model that I trained using Python.
However, I encountered a new error (a very long error message)
The ghhops_server doesn’t currently support ndarray as a data type for input or output. You are limited to the types defined in the ghhops_server for what can be passed around (HopsCurve, HopsPoint, HopsNumber,…)