Thank you, this is a fantastic package. The blogs are just great.
The following code generates a metaclass conflict error in python2.7. It appears that something is confusing the metaclass resolution in the decorator. Do you have any suggestions about how this can be fixed? Other than the removing the decorator. I am afraid that that option is not available to me.
$ python2.7 /tmp/i1.py
Traceback (most recent call last):
File "/tmp/i1.py", line 15, in <module>
class ItemwiseMetric(Metric):
File "/opt/cr/lib/python2.7/abc.py", line 87, in __new__
cls = super(ABCMeta, mcls).__new__(mcls, name, bases, namespace)
TypeError: Error when calling the metaclass bases
metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Thank you, this is a fantastic package. The blogs are just great.
The following code generates a metaclass conflict error in python2.7. It appears that something is confusing the metaclass resolution in the decorator. Do you have any suggestions about how this can be fixed? Other than the removing the decorator. I am afraid that that option is not available to me.
Code
Error Message