Patch: metaclass conflict in comtypes for python 3.3.2

Posted on Mon 12 August 2013 in Technology • 1 min read

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