[Numpy-discussion] extension module with swig

Giovanni Samaey giovanni.samaey@cs.kuleuven...
Tue Nov 4 04:46:14 CST 2008

Hi Matthieu,

thank you for your prompt reply.

On 04 Nov 2008, at 11:24, Matthieu Brucher wrote:

>> # dot extension module
>> _test = Extension("_test",
>>                    ["test_wrap.c",
>>                     "test.c"],
>>                    include_dirs = [numpy_include,'/data/home/
>> u0038151/include'],
>>                   library_dirs = ['/data/home/u0038151/lib']
>>                  )

This is where is specify the directory where my header files are, as  
well as the directory of the library.  If I add, from your suggestion  
libraries = ['gsl'] to that list, it tries to pick up a gsl that is  
installed in /usr/lib (but there are no headers there.)
Then I get the message:

python -c "import dot"
Traceback (most recent call last):
   File "<string>", line 1, in ?
   File "dot.py", line 7, in ?
     import _dot
ImportError: /usr/lib/libgsl.so.0: undefined symbol: cblas_dsdot

So it finds the gsl symbols in the system library (not mine), probably  
combined with my headers, and then has a different error.


More information about the Numpy-discussion mailing list