ctypes problem loading libc.so on FreeBSD current
Craig Rodrigues
rodrigc at FreeBSD.org
Sat Feb 14 01:49:15 UTC 2015
On Thu, Feb 12, 2015 at 11:42 PM, Marcus von Appen <mva at freebsd.org> wrote:
>
> You described the problem above. ctypes is unable to load linker
> scripts. The general advise is to use find_library():
>
> >>> import ctypes
> >>> import ctypes.util
> >>> clib = ctypes.util.find_library("c")
> >>> print clib
> libc.so.7
> >>> dll = ctypes.CDLL(clib)
>
> Cheers
> Marcus
>
That solves it.
Thanks!!
--
Craig
More information about the freebsd-python
mailing list