Hi Jesper,
I used to have similar issues with the hypre libraries on the mac.
I'm just guessing, but it looks like you can't find a dynamic
library for the mtl libraries. (I've seen similar issues with other
libraries). If you're not using the mtl libraries you might want to
remove them from the dolfin build (reading ahead, there appear to be
various issues with mtl, I just use PETSc)...Alternatively, you might
want to find the specific .dylib (libmtl.dylib ?) and add its
location to you DYLD_LIBRARY_PATH (or sometimes, I just create a new
pkgconfig file that points to the appropriate library and include
that in the dolfin.pc file...not sure if that will fix the python
problem however).
Not sure this is enormously useful, but let me know
marc
On Sep 21, 2009, at 8:58 AM, 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.
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev
----------------------------------------------------
Marc Spiegelman
Lamont-Doherty Earth Observatory
Dept. of Applied Physics/Applied Math
Columbia University
http://www.ldeo.columbia.edu/~mspieg
tel: 845 704 2323 (SkypeIn)
----------------------------------------------------
_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev