ctypes failing when a library needs another library

Jorge Vargas jorge.vargas at gmail.com
Mon Apr 9 11:05:02 EDT 2007


Hi

I'm having an issue with ctypes loading libraries.

I got the following setup. I have a library (coded by me) that calls a
external library (installed with the package manager), and my ctypes
program calls my lib.

at first python couldn't find my lib but setting LD_LIBRARY_PATH=. fix
that, but now it's failing inside my lib because it can't find the
"system" library.

the library itself is not an issue since I have a C program that test
it and it's working fine.

I'm running python 2.4 with the external ctypes module. under ubuntu linux 6.10



More information about the Python-list mailing list