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\__init__.py", line 1049, in class IUnknown(object, metaclass=_cominterface_meta): File "C:\Python33\lib\site-packages\comtypes\__init__.py", 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