← Back to team overview

dolfin team mailing list archive

[Bug 557654] Re: Unable to import Dolfin, CGAL library not loaded, ’image not found’

 

This is not a bug in DOLFIN but a problem with CGAL in MacPorts. The
solution to this problem is at the following link:

https://answers.launchpad.net/dorsal/+faq/986

** Changed in: dolfin
       Status: New => Invalid

-- 
Unable to import Dolfin, CGAL library not loaded, ’image not found’
https://bugs.launchpad.net/bugs/557654
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Invalid

Bug description:
I have recently installed FENiCS via dorsal.0.6.1 on my mac (OS 10.6.3). However, I am not able to import Dolfin when in Python. I get a very similar output as in Question #102008, but the solution does not help. I have reinstalled dorsal after the proposed change, but nothing changes.

In [1]: from dolfin import *
------------------------------------------------------------
Traceback (most recent call last):
  File "<ipython console>", line 1, in <module>
  File "/Users/tor/Work/FEniCS/lib/python2.6/site-packages/dolfin/__init__.py", line 13, in <module>
    import dolfin.cpp as cpp
  File "/Users/tor/Work/FEniCS/lib/python2.6/site-packages/dolfin/cpp.py", line 28, in <module>
    _cpp = swig_import_helper()
  File "/Users/tor/Work/FEniCS/lib/python2.6/site-packages/dolfin/cpp.py", line 24, in swig_import_helper
    _mod = imp.load_module('_cpp', fp, pathname, description)
ImportError: dlopen(/Users/tor/Work/FEniCS/lib/python2.6/site-packages/dolfin/_cpp.so, 2): Library not loaded: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gis_cgal/work/CGAL-3.5.1/lib/libCGAL.4.dylib
  Referenced from: /opt/local/lib/libCGAL_Core.4.dylib
  Reason: image not found



Any suggestions on fixes?
Thank you!
/Tor





References