← Back to team overview

dolfin team mailing list archive

Re: PyDolfin for Leopard

 

Jesper Carlsson wrote:
> Hi,
> 
> After doing an installation from Dorsal I cannot get any Python examples
> to work on my Mac.
> Below is an example of what happens when I'm trying to plot. The same
> error occurs whenever I run python code. Any ideas on how to fix this?
> 
> Best regards,
> Jesper
> 
> Plotting u0 (coefficient 0), press 'q' to continue...
> Traceback (most recent call last):
>   File "/Users/jesper/FEniCS/build/bin/viper", line 200, in <module>
>     _newmain()
>   File "/Users/jesper/FEniCS/build/bin/viper", line 195, in _newmain
>     p = __main(infile, lutfile, mode)
>   File "/Users/jesper/FEniCS/build/bin/viper", line 130, in __main
>     return _plot_mesh(infile, lutfile, mode)
>   File "/Users/jesper/FEniCS/build/bin/viper", line 100, in _plot_mesh
>     import dolfin
>   File
> "/Users/jesper/FEniCS/build/lib/python2.5/site-packages/dolfin/__init__.py",
> line 11, in <module>
>     import cpp
>   File
> "/Users/jesper/FEniCS/build/lib/python2.5/site-packages/dolfin/cpp.py",
> line 31, in <module>
>     import _cpp
> ImportError:
> dlopen(/Users/jesper/FEniCS/build/lib/python2.5/site-packages/dolfin/_cpp.so,
> 2): Symbol not found:
> __ZN3mtl6vector8num_rowsIdNS0_10parametersINS_3tag9col_majorENS0_9non_fixed9dimensionELb0ELb0EEEEENS0_12dense_vectorIT_T0_E9size_typeERKSB_
>   Referenced from: /Users/jesper/FEniCS/build/lib/libdolfin.dylib
>   Expected in: dynamic lookup
> 
> *** Warning: Unable to plot.

Try disabling MTL, it might help. (Remove mtl from the list of packages
for leopard.)

Harish


References