Cannot change thread mode after it is set: getting this error in UiPath while executing Python function

While executing Python function from UiPath , getting error as
RemoteException wrapping System.InvalidOperationException: Error loading Python script —> RemoteException wrapping System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel,
Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: OSError : [WinError -2147417850] Cannot change thread mode after it is set

Note: Python function works okay when we execute using IDE (Like Spyder 3)

Any comment/ suggestion are welcome…


Please find list of modules I have imported for my requirment
import pandas as pd
import xlwings as xw
import openpyxl as xl

It’s done. issue resolved :slight_smile:

how did it resolved im facing the same problem