C extension modules in Python
Robert Kern
robert.kern at gmail.com
Sat Oct 22 23:25:09 EDT 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?
Are you using distutils to compile and link your extension? You should be.
Are you trying to directly link against libnumarray.so (i.e. by passing
the "-lnumarray" option to the linker)? You shouldn't be.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list