Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-03-07 Thread avalle
 Perhaps you should post that question for the numpy mailing list?

Thanks, I will try that. I have no clues
Cheers,
Lucia

 On Mon, Mar 5, 2012 at 1:47 PM, ava...@famaf.unc.edu.ar wrote:

  On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote:
 
  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
 following:

 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.
  import numpy
 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
import add_newdocs
  File /usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py,
 line
 9, in module
from numpy.lib import add_newdoc
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py,
 line 13, in module
from polynomial import *
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py,
 line 17, in module
from numpy.linalg import eigvals, lstsq
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py,
 line 48, in module
from linalg import *
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py,
 line 23, in module
from numpy.linalg import lapack_lite
 ImportError: libifport.so.5: cannot open shared object file: No such
 file
 or directory

 After that I thought it must be something about this libifport.so that
 numpy uses, but...

 :~/matplotlib$ locate libifport
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.a
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so.5
 :~/matplotlib$

 :~$ echo $LD_LIBRARY_PATH

 /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
 :~$ sudo -s
 root@:~# echo $LD_LIBRARY_PATH

 /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t

 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
 been built.

 I haven't been able to solve this issue yet. Thank you all very much for
 all your help.

 Cheers,
 Lucia.



 Part of the build process imports numpy in order to check its version (I
 think).  But the bigger question is why it fails as root.  That is very
 odd.

 Perhaps you should post that question for the numpy mailing list?

 Cheers!
 Ben Root




--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-03-05 Thread avalle
 On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote:

 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
following:

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.
 import numpy
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
import add_newdocs
  File /usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py, line
9, in module
from numpy.lib import add_newdoc
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py,
line 13, in module
from polynomial import *
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py,
line 17, in module
from numpy.linalg import eigvals, lstsq
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py,
line 48, in module
from linalg import *
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py,
line 23, in module
from numpy.linalg import lapack_lite
ImportError: libifport.so.5: cannot open shared object file: No such file
or directory

After that I thought it must be something about this libifport.so that
numpy uses, but...

:~/matplotlib$ locate libifport
/opt/intel/Compiler/11.1/038/lib/intel64/libifport.a
/opt/intel/Compiler/11.1/038/lib/intel64/libifport.so
/opt/intel/Compiler/11.1/038/lib/intel64/libifport.so.5
:~/matplotlib$

:~$ echo $LD_LIBRARY_PATH
/opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
:~$ sudo -s
root@:~# echo $LD_LIBRARY_PATH
/opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t

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
been built.

I haven't been able to solve this issue yet. Thank you all very much for
all your help.

Cheers,
Lucia.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-03-05 Thread Benjamin Root
On Mon, Mar 5, 2012 at 1:47 PM, ava...@famaf.unc.edu.ar wrote:

  On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote:
 
  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
 following:

 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.
  import numpy
 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
import add_newdocs
  File /usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py, line
 9, in module
from numpy.lib import add_newdoc
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py,
 line 13, in module
from polynomial import *
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py,
 line 17, in module
from numpy.linalg import eigvals, lstsq
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py,
 line 48, in module
from linalg import *
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py,
 line 23, in module
from numpy.linalg import lapack_lite
 ImportError: libifport.so.5: cannot open shared object file: No such file
 or directory

 After that I thought it must be something about this libifport.so that
 numpy uses, but...

 :~/matplotlib$ locate libifport
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.a
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so
 /opt/intel/Compiler/11.1/038/lib/intel64/libifport.so.5
 :~/matplotlib$

 :~$ echo $LD_LIBRARY_PATH

 /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t
 :~$ sudo -s
 root@:~# echo $LD_LIBRARY_PATH

 /opt/intel/Compiler/11.1/038/lib/intel64:/opt/intel/Compiler/11.1/038/mkl/lib/em64t

 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
 been built.

 I haven't been able to solve this issue yet. Thank you all very much for
 all your help.

 Cheers,
 Lucia.



Part of the build process imports numpy in order to check its version (I
think).  But the bigger question is why it fails as root.  That is very odd.

Perhaps you should post that question for the numpy mailing list?

Cheers!
Ben Root
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-23 Thread avalle
Thank you all for your help
Using sudo generates an error, without it everything run ok.

:~$ sudo python -c import numpy; print numpy.__version__
Traceback (most recent call last):
  File string, line 1, in module
  File /usr/local/lib/python2.7/dist-packages/numpy/__init__.py, line
137, in module
import add_newdocs
  File /usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py, line
9, in module
from numpy.lib import add_newdoc
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py,
line 13, in module
from polynomial import *
  File /usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py,
line 17, in module
from numpy.linalg import eigvals, lstsq
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py,
line 48, in module
from linalg import *
  File /usr/local/lib/python2.7/dist-packages/numpy/linalg/linalg.py,
line 23, in module
from numpy.linalg import lapack_lite
ImportError: libifport.so.5: cannot open shared object file: No such file
or directory

And the other command suggested by Eric, I think matplotlib is not
displayed due to it is not intalled yet, isn't it?

~$ sudo python -c import sys; print '\n'.join(sys.path)
/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
/usr/local/lib/python2.7/dist-packages/nose-0.11.0.dev_r636-py2.7.egg
/usr/local/lib/python2.7/dist-packages/FiPy-2.1.2-py2.7.egg
/usr/local/lib/python2.7/dist-packages/pysparse-1.2_dev224-py2.7-linux-x86_64.egg
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PIL
/usr/lib/python2.7/dist-packages/gst-0.10
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
/usr/lib/pymodules/python2.7/libubuntuone
/usr/lib/python2.7/dist-packages/ubuntu-sso-client
/usr/lib/python2.7/dist-packages/ubuntuone-client
/usr/lib/python2.7/dist-packages/ubuntuone-control-panel
/usr/lib/python2.7/dist-packages/ubuntuone-installer
/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode

should I reinstall numpy?
Thanks,
Lucia

 On 02/22/2012 04:06 PM, ava...@famaf.unc.edu.ar wrote:
 Dear users,
 I am trying to install matplotlib from source. When I run:
   sudo python setup.py install  build.out
 I got the following:
 basedirlist is: ['/usr/local', '/usr']
 
 BUILDING MATPLOTLIB
  matplotlib: 1.2.x
  python: 2.7.2+ (default, Oct  4 2011, 20:06:09)  [GCC
 4.6.1]
platform: linux2

 REQUIRED DEPENDENCIES
   numpy: no
  * You must install numpy 1.4 or later to build
  * matplotlib.

 But numpy is installed(/usr/local/lib/python2.7/dist-packages/numpy)
 python -c import numpy; print numpy.__version__
 1.6.1
 How matplotlib could locate numpy path?

 mpl is trying to use exactly this method: import numpy.  See the
 check_for_numpy function() in setupext.py.

 All I can imagine is that either because of sudo, or because of the
 terminal you were in when you tried to build, your sys.path was not
 including the /usr/local path.

 Try:
 sudo python -c import numpy; print numpy.__version__

 sudo python -c import sys; print '\n'.join(sys.path)

 The latter must include /usr/local/lib/python2.7/dist-packages.

 Eric


 How this problem could be solved?
 Thanks a lot in advance.
 Lucia




 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users




--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-23 Thread Scott Sinclair
On Feb 23, 2012 1:39 PM, ava...@famaf.unc.edu.ar wrote:

 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

Cheers,
Scott
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-22 Thread avalle
Dear users,
I am trying to install matplotlib from source. When I run:
 sudo python setup.py install  build.out
I got the following:
basedirlist is: ['/usr/local', '/usr']

BUILDING MATPLOTLIB
matplotlib: 1.2.x
python: 2.7.2+ (default, Oct  4 2011, 20:06:09)  [GCC 4.6.1]
  platform: linux2

REQUIRED DEPENDENCIES
 numpy: no
* You must install numpy 1.4 or later to build
* matplotlib.

But numpy is installed(/usr/local/lib/python2.7/dist-packages/numpy)
python -c import numpy; print numpy.__version__
1.6.1
How matplotlib could locate numpy path?

How this problem could be solved?
Thanks a lot in advance.
Lucia




--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-22 Thread Benjamin Root
On Wednesday, February 22, 2012, wrote:

 Dear users,
 I am trying to install matplotlib from source. When I run:
  sudo python setup.py install  build.out
 I got the following:
 basedirlist is: ['/usr/local', '/usr']

 
 BUILDING MATPLOTLIB
matplotlib: 1.2.x
python: 2.7.2+ (default, Oct  4 2011, 20:06:09)  [GCC 4.6.1]
  platform: linux2

 REQUIRED DEPENDENCIES
 numpy: no
* You must install numpy 1.4 or later to build
* matplotlib.

 But numpy is installed(/usr/local/lib/python2.7/dist-packages/numpy)
 python -c import numpy; print numpy.__version__
 1.6.1
 How matplotlib could locate numpy path?

 How this problem could be solved?
 Thanks a lot in advance.
 Lucia



Lucia, there might be a bug with the version checker.  Are you using
matplotlib from Git master?  If so, what is the date of the latest commit?

Ben Root
--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] problems installaling matplotlib on ubuntu 11.10

2012-02-22 Thread Eric Firing
On 02/22/2012 04:06 PM, ava...@famaf.unc.edu.ar wrote:
 Dear users,
 I am trying to install matplotlib from source. When I run:
   sudo python setup.py install  build.out
 I got the following:
 basedirlist is: ['/usr/local', '/usr']
 
 BUILDING MATPLOTLIB
  matplotlib: 1.2.x
  python: 2.7.2+ (default, Oct  4 2011, 20:06:09)  [GCC 4.6.1]
platform: linux2

 REQUIRED DEPENDENCIES
   numpy: no
  * You must install numpy 1.4 or later to build
  * matplotlib.

 But numpy is installed(/usr/local/lib/python2.7/dist-packages/numpy)
 python -c import numpy; print numpy.__version__
 1.6.1
 How matplotlib could locate numpy path?

mpl is trying to use exactly this method: import numpy.  See the 
check_for_numpy function() in setupext.py.

All I can imagine is that either because of sudo, or because of the 
terminal you were in when you tried to build, your sys.path was not 
including the /usr/local path.

Try:
sudo python -c import numpy; print numpy.__version__

sudo python -c import sys; print '\n'.join(sys.path)

The latter must include /usr/local/lib/python2.7/dist-packages.

Eric


 How this problem could be solved?
 Thanks a lot in advance.
 Lucia




 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users


--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users