should I reinstall numpy?
No need. You should be able to build matplotlib without sudo and then
install with sudo
python setup.py build
sudo python setup.py install
Yes! This is how it should be, but it's not.
I have gone a litte further trying to solve this. I have found out the
If I do an import numpy in python run as user, it works. In fact, 'python
setup.py build' works perfectly as user. But if I do an import numpy in
python run as root, I get the error I pasted in my previous message:
:~/matplotlib$ sudo python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", line
137, in <module>
File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py", line
9, in <module>
from numpy.lib import add_newdoc
line 13, in <module>
from polynomial import *
line 17, in <module>
from numpy.linalg import eigvals, lstsq
line 48, in <module>
from linalg import *
line 23, in <module>
from numpy.linalg import lapack_lite
ImportError: libifport.so.5: cannot open shared object file: No such file
After that I thought it must be something about this libifport.so that
numpy uses, but...
:~/matplotlib$ locate libifport
:~$ echo $LD_LIBRARY_PATH
:~$ sudo -s
root@:~# echo $LD_LIBRARY_PATH
So I don't know why python fails to import numpy as root... and I don't
know why mpl's installer needs to import numpy to install what has already
I haven't been able to solve this issue yet. Thank you all very much for
all your help.
On Feb 23, 2012 1:39 PM, <avalle@...3990...> wrote: