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.<br><br>
<div class="gmail_quote">On Thu, Jun 30, 2011 at 11:19 PM, Jonathan Regele <span dir="ltr"><<a href="mailto:jonathan.regele@caltech.edu">jonathan.regele@caltech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<u></u>
<div>
Hello,<br>
<br>
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.<br>
<br>
<table>
<tbody><tr>
<td>
Traceback (most recent call last):<br>
File "<string>", line 4, in <module><br>
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><br>
sure that it is installed properly.")<br>
RuntimeError: This module depends on the numpy module. Please makesure that it is installed properly.<br>
<br>
</td>
</tr>
</tbody></table>
<br>
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<br>
<br>
/usr/local/ParaView-3.10.1-Linux-x86_64/lib/paraview-3.10/lib/python2.7/site-packages/numpy/<br>
<br>
<br>
If I delete the python calculator and try it again I get a different error message:<br>
<br>
<table>
<tbody><tr>
<td>
Traceback (most recent call last):<br>
File "<string>", line 4, in <module><br>
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><br>
import numpy<br>
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><br>
import add_newdocs<br>
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><br>
from numpy.lib import add_newdoc<br>
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><br>
from polynomial import *<br>
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><br>
import numpy.core.numeric as NX<br>
AttributeError: 'module' object has no attribute 'core'<br>
<br>
</td>
</tr>
</tbody></table>
<br>
It gives the same error after that. The error seems to occur when it tries to import numpy. <br>
<br>
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:<br>
<br>
<table>
<tbody><tr>
<td>
Python 2.7.1 (r271:86832, Mar 17 2011, 09:15:47) <br>
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2<br>
>>> from paraview.simple import *<br>
paraview version 3.10.1, Date: 2011-01-28<br>
>>> import numpy<br>
Traceback (most recent call last):<br>
File "<console>", line 1, in <module><br>
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><br>
import add_newdocs<br>
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><br>
from numpy.lib import add_newdoc<br>
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><br>
from polynomial import *<br>
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><br>
from numpy.linalg import eigvals, lstsq<br>
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><br>
from linalg import *<br>
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><br>
from numpy.linalg import lapack_lite<br>
ImportError: liblapack.so: cannot open shared object file: No such file or directory<br>
>>> <br>
<br>
</td>
</tr>
</tbody></table>
I've tried several things, but it just doesn't make any sense. Any ideas?<br>
<br>
Jonathan<br>
<br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>