Using win32com encountered the following bug
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\Python37-32\lib\site-packages\win32com\client\gencache.py", line 534, in EnsureDispatch
mod = EnsureModule(tla[0], tla[1], tla[3], tla[4], bForDemand=bForDemand)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\win32com\client\gencache.py", line 391, in EnsureModule
module = GetModuleForTypelib(typelibCLSID, lcid, major, minor)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\win32com\client\gencache.py", line 266, in GetModuleForTypelib
AddModuleToCache(typelibCLSID, lcid, major, minor)
File "C:\Program Files (x86)\Python37-32\lib\site-packages\win32com\client\gencache.py", line 552, in AddModuleToCache
dict = mod.CLSIDToClassMap
AttributeError: module 'win32com.gen_py.00020813-0000-0000-C000-000000000046x0x1x9' has no attribute 'CLSIDToClassMap'
The solution is:
delete the following folder, and the program can run normally
C:\Users\<my username>\AppData\Local\Temp\gen_py
Read More:
- RuntimeError: Expected hidden[0] size (x, x, x), got(x, x, x)
- [Solved] emulator: glteximage2d: got err pre 🙁 0x502 internal 0x1908 format 0x1908 type 0x1401
- A problem occurred configuring project ‘:x x x‘. > java.lang.NullPointerException (no error message)
- CLP: error: getaddrinfo enotfound http://x.x.x.x/
- [-] handler failed to bind to x.x.x.x: Port troubleshooting
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- 1067 – Invalid default value for ‘sex‘1366 – Incorrect string value: ‘\xE6\x8A\x80\xE6\x9C\xAF…‘ f
- SSH Login: RSA host key for 192.168.x.x has changed and you have requested strict checking. Host key
- Microsoft OLE DB Provider for SQL Server error & #x27;80040e4d & #x27;
- OSD deployment failure code (0x00000001) 0x80004005
- Install in Python 3. X web.py
- Visual SVN server provider failed to perform the attempted operation 0x80041024 after win7 upgraded win10
- Error receiving broadcast Intent { act=com.supersdk.listen.PayListen_defeat flg=0x10 (has extras)
- Solution to the error of win7 & win10 shared printer 0x000000709
- 【PTA:】 Error: class X is public should be declared in a file named X.java
- After win7 shared the printer, the client connection prompt: the printer has been deleted (0x00000709)
- Win 10 System Restore Fail 0x80070091
- Unhandled exception at 0x00000000: 0xc0000005: access violation at position 0x0000000000
- win7 error code 0x80070522