13 messages in net.java.dev.jna.usersRe: [jna-users] Error looking up func...
FromSent OnAttachments
Peter SchwarzSep 5, 2008 12:47 pm 
Timothy WallSep 5, 2008 1:10 pm 
Peter SchwarzSep 5, 2008 1:14 pm 
Timothy WallSep 5, 2008 1:45 pm 
Peter SchwarzSep 5, 2008 1:56 pm 
Timothy WallSep 5, 2008 3:34 pm 
Peter SchwarzSep 5, 2008 4:25 pm 
Timothy WallSep 5, 2008 10:35 pm 
Peter SchwarzSep 8, 2008 10:43 am 
Timothy WallSep 10, 2008 9:58 am 
Timothy WallSep 10, 2008 10:02 am 
Timothy WallSep 10, 2008 10:07 am 
Peter SchwarzSep 10, 2008 1:45 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Error looking up functionActions...
From:Timothy Wall (twal@dev.java.net)
Date:Sep 10, 2008 9:58:33 am
List:net.java.dev.jna.users

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