Python file does not work after importing libraries in

Hello all.
I am trying to run my machine learning python file into UiPath. However, I am not able to run the file and hit the error “Invoke Python Method: One or more errors occurred.” after i import joblib and use the load() function in.

model = joblib.load(“C:/Users/xx.pkl”)

My entire python file looks like this for now:
import joblib

def input():

# model = joblib.load("C:/Users/babyt/MLDP 2022/Projects/value estimator/models/trained_seeker_regressor_model.pkl")


My python path is my anaconda path. “C:\Users\xx\anaconda3”. I have googled for other answers however I am not able to solve this issue.

Summary: The error only occurs when I import Python libraries in. If anyone could help me, I would appreciate it. Thank you!

Adding @StefanSchnell


Invoke Python through Python packages and give it a try to run function with or without parameters.