While I haven’t worked on exactly what you are working on:
I’d first verify suggest that the application that installs this class needs to
be installed on the PC you are trying to create the automation from, because
“Class not Registered” isn’t a python error, and it talks more directly to the
While I’ve done word automation in the past, is it possible that there’s any
issues with the word application installation itself? Or maybe you might have
multiple scripts trying to open/write files simultaneously?
As well, I might consider looking at task manager on your web server to see if
C:\Python39\Lib\site-packages\win32com\client>python -c "from
win32com.client.gencache import EnsureDispatch;
EnsureDispatch('ADODB.Connection.6.0');
That code seems to generate a directory in the correct path in both 3.9 and 3.11
C:\Python39\Lib\site-packages\win32com\gen_py\B691E011-1797-432E
Does something like `python -c "from win32com.client.gencache import
EnsureDispatch; EnsureDispatch('ADODB.Connection.6.0');` work? That
should generate directly into the expected output directory.
Mark
On 2023-05-30 1:44 p.m., Steven Manross wrote:
Command I ran:
C:\Python311\Lib\site-pack
Command I ran:
C:\Python311\Lib\site-packages\win32com\client>python makepy.py
"ADODB.Connection.6.0"
Output:
Generating to
C:\Users\someuser\AppData\Local\Temp\13\gen_py\3.11\B691E011-1797-432E-907A-4D8C69339129x0x6x1.py
Building definitions from type library...
Generating...
Importing module