[SciPy-User] error of compiling scipy on x86_64 linux cluster

Bruce Southey bsouthey at gmail.com
Thu Jan 27 11:02:38 EST 2011


On 01/27/2011 09:27 AM, Fang Xu wrote:
> Hi all,
>
>    I managed to compile numpy, but there're some errors of compiling 
> scipy.
>
> computer information:  Linux node008 2.6.18.2-34-default #1 SMP Mon 
> Nov 27 11:46:27 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
>
>  OS:  openSUSE 10.2 (X86-64)
>
>  kernel: 2.6.18.2-34-default
>
>  python-2.6
>
> error message:
>
> Traceback (most recent call last):
>   File "setup.py", line 160, in <module>
>     setup_package()
>   File "setup.py", line 127, in setup_package
>     from numpy.distutils.core import setup
>   File 
> "/projects/AlyssaMaster2008/ext/lib64/python2.6/site-packages/numpy/__init__.py", 
> line 136, in <module>
>     import add_newdocs
>   File 
> "/projects/AlyssaMaster2008/ext/lib64/python2.6/site-packages/numpy/add_newdocs.py", 
> line 9, in <module>
>     from numpy.lib import add_newdoc
>   File 
> "/projects/AlyssaMaster2008/ext/lib64/python2.6/site-packages/numpy/lib/__init__.py", 
> line 4, in <module>
>     from type_check import *
>   File 
> "/projects/AlyssaMaster2008/ext/lib64/python2.6/site-packages/numpy/lib/type_check.py", 
> line 8, in <module>
>     import numpy.core.numeric as _nx
>   File 
> "/projects/AlyssaMaster2008/ext/lib64/python2.6/site-packages/numpy/core/__init__.py", 
> line 5, in <module>
>     import multiarray
> /*ImportError: libpython2.6.so.1.0: cannot open shared object file: No 
> such file or directory*/
>
> I have been digging the web for a while, but didn't come with 
> solution.  Could you help me ? Thank you.
>
>   Best
>       Fang
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
Out of curiosity, do you have openoffice or libreoffice installed?
I do not recall the exact problem or solution but it related to 
incorrect usage of shared libraries.

If you do search for libpython such as some of the examples on my system:
$ locate libpython | grep so
/opt/libreoffice/basis3.3/program/libpython2.6.so
/opt/libreoffice/basis3.3/program/libpython2.6.so.1.0
/usr/lib64/libpython2.7.so
/usr/lib64/libpython2.7.so.1.0
/usr/lib64/libpython3.1.so
/usr/lib64/libpython3.1.so.1.0

The 2.7 and 3.1 versions are from the distro (F14) and 2.6 version from 
the one I build myself. The other is from libreoffice and it probably 
the one that is being found instead of the correct python library for 
your system.

Obviously removing or probably updating libreoffice (3.3 final was 
released 2 days ago) would solve it.

Bruce

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20110127/1fdb82de/attachment.html>


More information about the SciPy-User mailing list