It seems that under certain circumstances, Excel does not register the Excel workbook properly in RunningObjectTable , a prerequisite that it can be found through COM. So far, I have noticed this behavior for downloadable books from the Internet, as he first opens them in Protected View mode (depending on the settings). However, based on the reviews here, it looks like this could happen under other circumstances, possibly caused by some add-ons or security settings.
I applied a fix for this, which will be present in v0.3.1 , but you can get it right now from GitHub . Let me know if you need any help.
Update (January 16 - 2015): xlwings v0.3.1, including this fix, has just been released.
Update 2 (September 13, 2015): xlwings v0.4.0 should permanently fix this error in a reliable way.
Felix zumstein
source share