Sebastian Steiger writes: > The library I'm importing is called _gain.so. > > Does this help you? Yes, it all kooks fine. now try LD_DEBUG=all and see if there are any errors. It's very unhelpful that python isn't telling you the error string returned by dlopen(). That would probably tell you what was wrong. Andrew.