[Paraview] Error with python calculator tutorial
David Partyka
david.partyka at kitware.com
Fri Jul 1 07:40:52 EDT 2011
Hi Jonathan, It looks like we missed installing lapack in the binary and the
machines we tested on likely already had it installed in the system. I'll
look into slipping the missing .so into the binary shortly.
On Thu, Jun 30, 2011 at 11:19 PM, Jonathan Regele <
jonathan.regele at caltech.edu> wrote:
> **
> Hello,
>
> I've searched the web far and wide for an answer to this question, but
> can't find it. I'm running Ubuntu 10.04 and want to use the python
> calculator. I downloaded the paraview-3.10.1 binary and loaded paraview.
> When I follow the tutorial, create sphere assign the expression the value 5
> and apply it gives the following error.
>
> Traceback (most recent call last):
> File "<string>", line 4, in <module>
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/site-packages/paraview/vtk/dataset_adapter.py",
> line 5, in <module>
> sure that it is installed properly.")
> RuntimeError: This module depends on the numpy module. Please makesure that
> it is installed properly.
>
>
> I have python 2.6.5 installed on my computer but my understanding is that
> the binary comes with its own set of python. I checked and it looks like
> there is python 2.7 in the package directory. It also looks like it comes
> with its own version of numpy here
>
>
> /usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/
>
>
> If I delete the python calculator and try it again I get a different error
> message:
>
> Traceback (most recent call last):
> File "<string>", line 4, in <module>
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/site-packages/paraview/vtk/dataset_adapter.py",
> line 2, in <module>
> import numpy
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/__init__.py",
> line 136, in <module>
> import add_newdocs
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/add_newdocs.py",
> line 9, in <module>
> from numpy.lib import add_newdoc
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/__init__.py",
> line 13, in <module>
> from polynomial import *
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/polynomial.py",
> line 11, in <module>
> import numpy.core.numeric as NX
> AttributeError: 'module' object has no attribute 'core'
>
>
> It gives the same error after that. The error seems to occur when it tries
> to import numpy.
>
> In a linux terminal window, if I open python 2.6 and "import numpy" it
> doesn't give me any problems. If I open the python shell in paraview and try
> to import numpy I get the following output:
>
> Python 2.7.1 (r271:86832, Mar 17 2011, 09:15:47)
> [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
> >>> from paraview.simple import *
> paraview version 3.10.1, Date: 2011-01-28
> >>> import numpy
> Traceback (most recent call last):
> File "<console>", line 1, in <module>
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/__init__.py",
> line 136, in <module>
> import add_newdocs
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/add_newdocs.py",
> line 9, in <module>
> from numpy.lib import add_newdoc
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/__init__.py",
> line 13, in <module>
> from polynomial import *
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/lib/polynomial.py",
> line 17, in <module>
> from numpy.linalg import eigvals, lstsq
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/linalg/__init__.py",
> line 48, in <module>
> from linalg import *
> File
> "/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/linalg/linalg.py",
> line 23, in <module>
> from numpy.linalg import lapack_lite
> ImportError: liblapack.so: cannot open shared object file: No such file or
> directory
> >>>
>
> I've tried several things, but it just doesn't make any sense. Any
> ideas?
>
> Jonathan
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110701/4fbde603/attachment.htm>
More information about the ParaView
mailing list