dragonfly icon indicating copy to clipboard operation
dragonfly copied to clipboard

Launching sapi5 win32com has no attribute CLSIDToClassMap

Open LexiconCode opened this issue 3 years ago • 1 comments

When launching sapi5 via cli I get;

WARNING:engine:Exception while initializing sapi5 engine: module 'win32com.gen_py.C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x4' has no attribute 'CLSIDToClassMap'
ERROR:command:Exception while initializing sapi5 engine: module 'win32com.gen_py.C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x4' has no attribute 'CLSIDToClassMap

Workaround:

  • Remove-Item -path $env:LOCALAPPDATA\Temp\gen_py -recurse https://gist.github.com/rdapaz/63590adb94a46039ca4a10994dff9dbe

LexiconCode avatar Oct 09 '21 04:10 LexiconCode

Thanks for opening an issue on this problem. I've been aware of it for some time and came up with a similar workaround. Unless I am missing something, I'd say this is an external bug with pywin32.

drmfinlay avatar Oct 14 '21 07:10 drmfinlay

I don't even get this error on my system any more. Maybe it's fixed?

Or maybe it only happens when pywin32 is installed via pip? If I recall correctly, the installer version performs some extra steps, related to win32com, that can't feasibly be done via pip.

drmfinlay avatar Sep 04 '22 08:09 drmfinlay

Yeah you can feel free to close as I have not experienced it in a while.

LexiconCode avatar Sep 04 '22 13:09 LexiconCode

All right then. We can always re-open it later if necessary.

drmfinlay avatar Sep 04 '22 13:09 drmfinlay