Last active
May 23, 2024 07:03
-
-
Save rdapaz/63590adb94a46039ca4a10994dff9dbe to your computer and use it in GitHub Desktop.
Fix for module win32com.gen_py has no attribute 'CLSIDToPackageMap'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If errors are found, do this | |
# clear contents of C:\Users\<username>\AppData\Local\Temp\gen_py | |
# that should fix it, to test it type | |
import win32com.client | |
app = win32com.client.gencache.EnsureDispatch('Word.Application') | |
app.Visible = True |
Remove-Item -path $env:LOCALAPPDATA\Temp\gen_py -recurse
work for me!!!!!!!!!!!! ty!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@amarines2605 - I've deleted gen_py countless times as everyone seems to recommend... the quickfix for microsoft 365 was the piece I was missing. Thank you for the solution.