_argtypes_没有from_param方法

时间:2014-01-07 10:24:19

标签: python linux ctypes

关于这个问题 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如何在结构中实现这个

0 个答案:

没有答案