Hi,

I installed the latest (in fact, older ones as well) version of FEniCS under 
Mac OS X 10.9 and it doesn’t work with many of the demos. For example:

python demo_poisson.py 
In instant.import_module_directly: Failed to import module 
'dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d' from 
'/Users/eperez/.instant/cache';
ImportError:dlopen(/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so,
 2): Symbol not found: 
__ZNK6dolfin10Expression21compute_vertex_valuesERNSt3__16vectorIdNS1_9allocatorIdEEEERKNS_4MeshE
  Referenced from: 
/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so
  Expected in: flat namespace
 in 
/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so;
Failed to import module found in cache. Modulename: 
'dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d';
Path: '/Users/eperez/.instant/cache';
ImportError:dlopen(/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so,
 2): Symbol not found: 
__ZNK6dolfin10Expression21compute_vertex_valuesERNSt3__16vectorIdNS1_9allocatorIdEEEERKNS_4MeshE
  Referenced from: 
/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so
  Expected in: flat namespace
 in 
/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so;
Traceback (most recent call last):
  File "demo_poisson.py", line 54, in <module>
    f = Expression("10*exp(-(pow(x[0] - 0.5, 2) + pow(x[1] - 0.5, 2)) / 0.02)")
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/functions/expression.py",
 line 523, in __new__
    cpp_base, members = compile_expressions([cppcode])
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py",
 line 176, in compile_expressions
    code_snippets), classnames)
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py",
 line 114, in compile_expression_code
    compiled_module = compile_extension_module(code)
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
 line 66, in mpi_jit
    return local_jit(*args, **kwargs)
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py",
 line 505, in compile_extension_module
    compiled_module = instant.import_module(module_name)
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/cache.py",
 line 156, in import_module
    return check_disk_cache(modulename, cache_dir, moduleids)
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/cache.py",
 line 122, in check_disk_cache
    module = import_and_cache_module(path, modulename, moduleids)
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/cache.py",
 line 68, in import_and_cache_module
    instant_assert(module is not None, "Failed to import module found in cache. 
Modulename: '%s';\nPath: '%s';\n%s:%s;" % (modulename, path, type(e).__name__, 
e))
  File 
"/Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/instant/output.py",
 line 55, in instant_assert
    raise AssertionError(text)
AssertionError: Failed to import module found in cache. Modulename: 
'dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d';
Path: '/Users/eperez/.instant/cache';
ImportError:dlopen(/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so,
 2): Symbol not found: 
__ZNK6dolfin10Expression21compute_vertex_valuesERNSt3__16vectorIdNS1_9allocatorIdEEEERKNS_4MeshE
  Referenced from: 
/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so
  Expected in: flat namespace
 in 
/Users/eperez/.instant/cache/dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d/_dolfin_compile_code_962f36e90dd3e8da19ecd108064bff5d.so;


I’ve tried several things I found on the internet but none of them worked so 
far.

Thanks in advance for your help,

Eneko Perez
IT Manager
Basque Center for Applied Mathematics
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to