[SciPy-user] Undefined symbol "ATL_cpttrsm"

Pearu Peterson pearu at scipy.org
Sun Oct 31 10:44:10 CST 2004



On Sun, 31 Oct 2004, Lee Harr wrote:

> I am running scipy on FreeBSD 4.10 built from
> ports. Most things seem to work fine, but ...
>
>>>> from scipy import *
>>>> linalg.solve
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.3/site-packages/scipy_base/ppimport.py", line 
> 270, in __getattr__
>   module = self._ppimport_importer()
> File "/usr/local/lib/python2.3/site-packages/scipy_base/ppimport.py", line 
> 243, in _ppimport_importer
>   module = __import__(name,None,None,['*'])
> File "/usr/local/lib/python2.3/site-packages/scipy/linalg/__init__.py", line 
> 8, in ?
>   from basic import *
> File "/usr/local/lib/python2.3/site-packages/scipy/linalg/basic.py", line 
> 11, in ?
>   from lapack import get_lapack_funcs
> File "/usr/local/lib/python2.3/site-packages/scipy/linalg/lapack.py", line 
> 15, in ?
>   import flapack
> ImportError: /usr/local/lib/libptf77blas.so.1: Undefined symbol "ATL_cpttrsm"
>
>
> Any hints on how to fix this are appreciated ...

Symbol "ATL_cpttrsm" should be defined in atlas library, try `nm 
/usr/local/lib/libatlas.* | grep ATL_cpttrsm`.
So it looks like atlas library was not used during the linking of flapack 
extension module or -lptf77blas was specified after -latlas.

What is the output (both stdout and stderr) of

>>> from scipy_distutils.system_info import get_info
>>> get_info('lapack_opt')

?

Pearu



More information about the SciPy-user mailing list