What do you get for "otool -L /usr/lib/libpython.dylib"?
/usr/lib/libpython.dylib:
/System/Library/Frameworks/Python.framework/Versions/2.5/
Python (compatibility version 2.5.0, current version 2.5.1)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
current version 111.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
current version 1.0.0)
On Sep 8, 2008, at 1:43 PM, Peter Schwarz wrote:
It seems more like missing methods, rather than an environment
thing. I've
double checked the location, and I can access other methods out of the
library. Here's my modified test:
public void testSanity() throws Exception {
final NativeLibrary lib = NativeLibrary.getInstance("python");
assertEquals("/usr/lib/libpython.dylib",
lib.getFile().getPath());
Function fn = lib.getFunction("Py_Initialize");
assertNotNull(fn);
fn = lib.getFunction("Py_InitModule");
assertNotNull(fn);
}
The only assertion that fails is that last one.
Probably just a typo above, but the symbol I have in the library is
Py_InitModule4