Inside Out

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

You're in a happy corner. Take a moment. Breathe. Reflect. Did you hear the sound of silence?

© 2021 Inside Out. This work is licensed under a  CC-BY-NC-SA 4.0 License.