How to solve com_error: (-2147221008, ‘CoInitialize has not been called.’, None, None) for multithreaded excel application?
enter image description hereI have a worker thread for a PYQT5 application that feeds into a progress bar when the function is called. The issue is that I am getting a com_error: (-2147221008, ‘CoInitialize has not been called.’, None, None) whenever I call the excel function. How can I fix this error?