I'm trying to work with Pypy
, but as soon as I've executed my code in Pypy
fails, but with cPython
works.
I've found several issues googling around regarding ctypes and pypy, but I'm not able to find the error in my code:
libc = CDLL("libc.so.6")
ptr = c_void_p(None)
result = libc.getifaddrs(pointer(ptr))
if result:
return None
ifa = ifaddrs.from_address(ptr.value)
result = {}
the code fails at the call libc.getifaddrs(pointer(ptr))
, returning:
102: RuntimeWarning: C function without declared arguments called result = libc.getifaddrs(pointer(ptr))
Any Idea what's going on?
Thanks!