Basically I have a base class defined in Cython with basic structure as follows. This is in the baseclass.pyx file.
cdef class BaseClass:
def __init__(self, fov):
self.fov = fov
cdef Vector3 MyMethod(self, parameter):
cdef Vector3 transformed = Vector3()
return transformed
I have a python class inheriting that base cython class as follows:
from baseclass import BaseClass
class Child(BaseClass):
def __init__(self, near=1e-6, far=1e-6):
self._near = near
self._far = far
# more methods here
Finally, I create an instance of the child class and try to call the parent method:
temp = Child()
temp.MyMethod(parameter)
And I get the error:
'Child' has no attribute 'MyMethod'.