Hi, After labelling in label-studio and creating custom ML skill successfully for NER model we are getting the below error while consuming that NER ML skill.
Our streaming logs shows that the pipeline ran successfully and also the updated package is deployed.
{
“code”: “InternalServerError”,
“message”: “Prediction Failed”,
“stacktrace”: null,
“trace_id”: “38cd059f-42fa-40d7-8cc0-1b65b904f221”,
“reason”: “{"message": "module ‘uipath_core.utils.utils’ has no attribute ‘print_log_trace_statements’", "stacktrace": " File \"/microservice/main.py\", line 32, in predict\n df = self.mymodel.predict(df)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/torch/autograd/grad_mode.py\", line 27, in decorate_context\n return func(*args, **kwargs)\n File \"\", line 99, in predict\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/frame.py\", line 8839, in apply\n return op.apply().finalize(self, method=\"apply\")\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/apply.py\", line 727, in apply\n return self.apply_standard()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/apply.py\", line 851, in apply_standard\n results, res_index = self.apply_series_generator()\n File \"/home/aicenter/.local/lib/python3.8/site-packages/pandas/core/apply.py\", line 867, in apply_series_generator\n results[i] = self.f(v)\n File \"\", line 99, in \n File \"\", line 129, in predict_row\n File \"\", line 146, in predict_spans\nValueError: not enough values to unpack (expected 2, got 1)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\", line 227, in run_model_function\n output, metrics = function(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\", line 75, in _decorator\n return fn(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/logs/logger_mvc.py\", line 90, in _decorator\n return fn(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/auth/auth_processing_filter.py\", line 25, in _decorator\n return fn(*args, **kwargs)\n File \"/home/aicenter/.local/lib/python3.8/site-packages/uipath_core/plugin.py\", line 166, in _model_predict\n utils.print_log_trace_statements()\nAttributeError: module ‘uipath_core.utils.utils’ has no attribute ‘print_log_trace_statements’"}”
}
Can someone please help in fixing this error?