Inside Out

Notes on seeking wisdom and crafting software

Patch: metaclass conflict in comtypes for python 3.3.2

You’d see following stacktrace (issue reported here).  Until we have an official fix, a temporary patch is available on this gist. Tested on Python 3.3.2 (x86)/Windows 8. Enjoy!

File "C:\Python33\lib\site-packages\comtypes\", line 1049, in class IUnknown(object, metaclass=_cominterface_meta): File "C:\Python33\lib\site-packages\comtypes\", line 281, in __new__ class _(partial.partial, POINTER(p)): TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases