C extension modules in Python

Alex Martelli aleaxit at yahoo.com
Sun Oct 23 04:35:20 CEST 2005

<luiscasanova at gmail.com> wrote:

> Hello,
> I'vre written an extension module to accelarate some code i've made in
> python with numarray. Then i compiled an linke d it with swig, my
> problem is that when i make the import in my python code it gives me an
> error: ImportError: libnumarray.so: cannot open shared object file: No
> such file or directory
> does anyone know why this hapens and how can i solve it?

It seems that the libnumarray.so (which your extension is probably
trying to load) is not in a directory where your system will like
loading it from.  It's hard to say more without knowing about your
system, and the way you've set things up for it in terms of loading of
dynamic libraries (which IS a very system-dependent thing).


More information about the Python-list mailing list