[Paraview] PythonCalculator in Paraview 3.10.1 does not work on Mac OSX

David Partyka david.partyka at kitware.com
Mon Sep 12 10:05:45 EDT 2011


Thanks Mark, I will take a look at this. I suspect there are some issues in
NUMPY's build system when building on Lion since its so new.

On Mon, Sep 12, 2011 at 12:01 AM, Brandon, Mark <mark.brandon at yale.edu>wrote:

> I am using the distributed binary for Paraview v. 3.10.1 and running on Mac
> OSX v. 10.7.1 (Lion). The PythonCalculator generates the error shown below,
> even when using simple cases, such as setting an array to a constant value
> (which is the first example shown in the wiki for the PythonCalculator). A
> similar error (included below) occurs when the command "import numpy" in the
> python shell in Paraview. My guess is that the Paraview fails to distinguish
> between the python version installed with Paraview, and the python version
> that is native to Mac OSX system.
> Best, Mark
>
> Error thrown by PythonCalculator:
>  File "<string>", line 13
>    retVal = area(inputs[0])mport
>                                ^
> SyntaxError: invalid syntax
> Traceback (most recent call last):
>  File "<string>", line 4, in <module>
>  File
> "/Users/partyd/Projects/ParaView-3.10/build/ParaView-build/Utilities/VTKPythonWrapping/site-packages/paraview/vtk/dataset_adapter.py",
> line 5, in <module>
> RuntimeError: This module depends on the numpy module. Please makesure that
> it is installed properly.
>
> Error thrown by "import numpy" in the Paraview Python shell:
> >>> import numpy
> Traceback (most recent call last):
>  File "<console>", line 1, in <module>
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/__init__.py",
> line 130, in <module>
>    import add_newdocs
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/add_newdocs.py",
> line 9, in <module>
>    from lib import add_newdoc
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/lib/__init__.py",
> line 152, in <module>
>    from type_check import *
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/lib/type_check.py",
> line 8, in <module>
>    import numpy.core.numeric as _nx
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/__init__.py",
> line 5, in <module>
>    import multiarray
> ImportError:
> dlopen(/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/multiarray.so,
> 2): no suitable image found. Did find:
>
>  /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/multiarray.so:
> mach-o, but wrong architecture
> >>>
>
>
> _______________________________________________
> 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/20110912/ce6d3330/attachment.htm>


More information about the ParaView mailing list