[SciPy-user] clapack--installation problem

Pearu Peterson pearu at cens.ioc.ee
Sat Aug 17 18:35:20 EDT 2002


On Sat, 17 Aug 2002, Giovanni Montana wrote:

> The strange thing (to me) is 
> that, even if Python returns an "exceptions.ImportError: No module named 
> clapack", scipy still *seems* to be working just fine (or at least I can use 
> the functions I needed most so far, or even play with the nice wxPython-based 
> plotting tutorial). 

It's a feature needed when one decides not to use atlas. Say, when using
other optimized blas/lapack libraries.

> > ? And what is the exact location of your atlas library?
> 
> it's in $HOME/ATLAS/lib/Linux_P4SSE2_2/

So, try

ATLAS=$HOME/ATLAS/lib/Linux_P4SSE2_2/ python system_info.py

to see if scipy_distutils is able to find your atlas.
Then proceed with

cd scipy
rm -rf build
ATLAS=$HOME/ATLAS/lib/Linux_P4SSE2_2/ python setup.py install


Btw, you mentioned that you tired to edit site.cfg. It should have been
worked. Therefore I wonder what went wrong with site.cfg? Basically, the
following steps are necessary:
1)
  cd scipy/scipy_distutils
  cp sample_site.cfg site.cfg
2) Edit site.cfg. In your case there must be the following fragment

[atlas]
library_dirs = $HOME/ATLAS/lib/Linux_P4SSE2_2/

[Hmm, I am not sure if $HOME will be expanded.]

3) Check that your atlas is found with

   python system_info.py

4) Proceed with
 
   cd scipy
   python setup.py install

> > ls -l /path/to/your/atlas/lib{lapack,f77blas,cblas,atlas}.a
> 
> -rw-r--r--    1 root     root      7436968 Aug 16 03:29 libatlas.a
> -rw-r--r--    1 root     root       313244 Aug 16 03:23 libcblas.a
> -rw-r--r--    1 root     root       356926 Aug 16 03:29 libf77blas.a
> -rw-r--r--    1 root     root      5335460 Aug 16 13:56 liblapack.a
> 
> By the way, am I supposed to find a clapack.so somewhere in the 
> scipy/build/lib.linux-i686-2.2/ folder?  

No. clapack is build only if atlas is available.

Pearu





More information about the SciPy-User mailing list