关于这个问题 python ctype intialising a structure
以上解决方案在Windows中对我来说很好,现在我通过加载共享库在linux中尝试相同的代码,现在我收到此错误
libCAN.WriteCANMessage.argtypes = [handle, POINTER(CMsg)]
TypeError: item 1 in _argtypes_ has no from_param method
我该如何消除这个错误,我看到一些链接说添加from_param classmethod
如何在结构中实现这个