OK, I think this is a bug of pywin32,
Line 37 of \win32comext\axdebug\documents.py,
class DebugDocumentText(
gateways.DebugDocumentInfo, gateways.DebugDocumentText,
gateways.DebugDocument
gateway.DebugDocumentText already inherits from gateway.DebugDocument. This
would cause Python to give a Method Resolution Order (MRO) error, because
Python cannot determine what class to look methods up on first.
There is no need to list gateway.DebugDocument as the parent class, simply
class DebugDocumentText(
gateways.DebugDocumentInfo, gateways.DebugDocumentText)
Agree?
------ Original Message ------
From "Wuping Xin" <[email protected]<mailto:[email protected]>>
To "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Date 6/29/2023 2:15:27 PM
Subject Python Active Scripting Error - should I ignore it?
When I running a Python Active Script, DebugView captured the following
errrors - any advice?
[22076] File
"C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axscript\client\framework.py",
line 729, in SetScriptSite
[22076] from . import debug
[22076] File
"C:\Users\\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axscript\client\debug.py",
line 9, in <module>
[22076] from win32com.axdebug import adb, axdebug, contexts, documents,
gateways, stackframe
[22076] File
"C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axdebug\documents.py",
line 37, in <module>
[22076] class DebugDocumentText(
[22076] TypeError: Cannot create a consistent method resolution
[22076] order (MRO) for bases DebugDocumentInfo, DebugDocumentText,
DebugDocument
[22076] *** Debugger Manager could not initialize - <class 'TypeError'>: Cannot
create a consistent method resolution
[22076] order (MRO) for bases DebugDocumentInfo, DebugDocumentText,
DebugDocument
_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32